remove_entity
Remove entities from the Home Assistant entity registry using a two-phase safety approach: preview first, then confirm deletion to prevent accidental removal.
Instructions
Remove an entity from the entity registry. Two-phase safety: preview first, then confirm.
By default returns a preview. Set confirm=True to actually delete. Entity may reappear if integration recreates it; consider disable instead.
Args: entity_id: Entity ID to remove (e.g. 'light.old_device') confirm: False=preview (default), True=permanently remove
Examples: remove_entity("light.orphaned_device") # preview remove_entity("light.orphaned_device", confirm=True) # delete
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_id | Yes | ||
| confirm | No |