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.
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": {
"script_id": "<script_id>"
},
"name": "automations_delete_script"
}
}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 | |||