Remove Lovelace resource
dashboards_remove_dashboard_resourceRemoves a Lovelace resource by numeric ID when no longer needed, e.g., after uninstalling a HACS card. Requires confirm=True to delete from all dashboards.
Instructions
Remove a registered Lovelace resource by its numeric id.
Requires confirm=True; without it, returns a confirmation prompt and
makes no change. With confirm=True, calls lovelace/resources/delete,
which drops the resource from every dashboard page that loaded it —
any custom card/theme it provided stops rendering until the resource
is re-added.
Use when: removing a resource that is no longer needed (e.g. after
uninstalling a HACS frontend card).
Returns: {"status": "removed", "resource_id": ..., "result": ...} on
success.
Errors: {"error": "confirmation_required", "message": ..., "action": ...} when confirm is false.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Must be true to actually remove the resource; false (the default) returns a confirmation prompt instead. | |
| resource_id | Yes | Numeric resource id, from dashboards_get_dashboard_resources. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||