Remove Script
ha_config_remove_scriptRemove a Home Assistant script created through the UI. Use to delete unwanted scripts, but note that YAML-defined scripts must be removed by editing configuration files.
Instructions
Delete a Home Assistant script.
EXAMPLES:
Delete script: ha_config_remove_script("old_script")
Delete script: ha_config_remove_script("temporary_script")
IMPORTANT LIMITATION: This tool can only delete scripts created via the Home Assistant UI. Scripts defined in YAML configuration files (scripts.yaml or configuration.yaml) cannot be deleted through the API and will return a 405 Method Not Allowed error.
To remove YAML-defined scripts, you must edit the configuration file directly.
WARNING: Deleting a script that is used by automations may cause those automations to fail.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Wait for script to be fully removed before returning. Default: True. | |
| script_id | Yes | Script identifier to delete — bare storage key ('old_script') or entity_id form ('script.old_script'); a leading 'script.' prefix is stripped before lookup. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||