Delete an automation config
automations_delete_automationPermanently delete a Home Assistant automation by config id and reload automations. Requires confirm=True; otherwise returns a safety prompt.
Instructions
Delete an automation by config id, then reload automations.
Without confirm=True returns a safety prompt; with confirm=True
deletes /api/config/automation/config/<id> and calls the
automation.reload service.
Returns: dict {"status": "deleted", "automation_id", "result"}.
Errors: returns {"error": "confirmation_required", "message": ..., "action": ...} when confirm is not True, or {"error": "not found", "automation_id": aid} when no automation has that config id.
Limits: requires confirm=True; deletion is immediate and permanent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Must be True to actually delete the automation. False (default) returns a safety prompt instead of deleting anything. | |
| automation_id | Yes | Automation config id to delete — the entity's `id` attribute, not its entity_id. A leading 'automation.' is stripped if present. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||