Delete theme file
themes_delete_themeDelete a theme YAML file from disk and optionally reload frontend themes. Use when a theme is no longer needed or must be removed from Home Assistant.
Instructions
Delete a theme file.
Removes themes/<name>.yaml from disk if it exists.
Use when: a theme is no longer needed.
Returns: dict with success and deleted (the removed path), plus
reloaded when reload=True.
Errors: {"success": false, "error": "Theme '<name>' not found at <path>"} when the file doesn't exist; {"success": false, "error": "invalid_theme_name", "detail": ...} when name contains '/' or a
backslash, starts with '.', or is blank.
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": {
"name": "<name>"
},
"name": "themes_delete_theme"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Theme name to delete; obtain it from themes_list_themes or themes_list_theme_files. | |
| reload | No | If true, calls frontend.reload_themes after deleting the file; defaults to true. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||