Delete a file in Home Assistant's config directory
ha_delete_config_fileDelete a single file from the Home Assistant config directory, such as a throwaway test file or superseded package. Directories, protected configs, and .storage are refused; deletion has no undo.
Instructions
Delete one file under the config directory — a throwaway test file, a superseded package, something you wrote and no longer need. It deletes a single file only, never a directory. The Vome component on the home refuses configuration.yaml, secrets.yaml and Home Assistant's database (also through a link with another name), anything outside the config directory, and .storage.
There is no undo, so read the file first if its contents might be wanted, and ask the owner before deleting anything you did not create. If something !includes the file, remove that reference first or Home Assistant will fail its configuration check. Requires the ha:files scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File relative to the config root, e.g. 'packages/old.yaml'. | |
| instance_id | Yes | The instance this delete is meant for (as listed by vomehome_list_instances). Required, and checked against the one this session is targeting: if they differ nothing is deleted. |