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.
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 | |||