Action with recorde purge

Hello

I want to delete one particular identity from the history based on a manual trigger.
Below is my code, which clearly has something wrong with it. Can someone help me on my way?

- alias: 'Energiemeter reset'
  trigger:
  - platform: state
    entity_id: input_boolean.test_switch
    from: "off"
    to: "on"
  action:
    service: recorder.purge
    data:
      recorder:
        include:
        entities:
          - sensor.energiemeter_kwh```

action:
  - service: recorder.purge_entities
    target:
      entity_id: sensor.energiemeter_kwh

Does the entity recreate itself, or does that delete the entity until reboot or permanently?