Delete Card Builder media file
card_builder_delete_mediaPermanently delete a file from the Card Builder media directory by relative path. Verify no card references it first, since media links are not updated.
Instructions
Permanently delete one file from the Card Builder media directory.
Calls card_builder/media/delete with path relative to
www/card_builder/. Any card whose mediaReference points at this
file (e.g. via block-image or block-weather-background) will fail
to load it afterwards — this tool does not check for or update such
references.
Use when: removing an uploaded image/SVG that no card uses anymore.
Returns: {"status": "deleted", "path": ..., "result": ...} on
success.
Errors: on failure, returns {"status": "error", "path": ..., "error": <exception text>} instead of raising.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path of the file to delete, relative to www/card_builder/ (see card_builder_list_media). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||