Delete a script config
automations_delete_scriptPermanently deletes a Home Assistant script by ID when confirmed, then reloads scripts.
Instructions
Delete a script by id, then reload scripts.
Without confirm=True returns a safety prompt; with confirm=True
deletes /api/config/script/config/<id> and calls the script.reload
service.
Returns: dict {"status": "deleted", "script_id", "result"}.
Errors: returns {"error": "confirmation_required", "message": ..., "action": ...} when confirm is not True, or {"error": "not found", "script_id": sid} when no script has that 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 script. False (default) returns a safety prompt instead of deleting anything. | |
| script_id | Yes | Script id to delete, bare (e.g. 'goodnight') or prefixed ('script.goodnight'). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||