remove_entity
Remove an entity from the Home Assistant entity registry with a two-phase process. Preview removal first, then confirm to permanently delete. Cleans up orphaned or unwanted entities.
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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"entity_id": "<entity_id>"
},
"name": "remove_entity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_id | Yes | ||
| confirm | No |