Remove Lovelace resource
dashboards_remove_dashboard_resourceRemove a registered Lovelace dashboard resource by numeric ID to stop loading unused custom cards or themes. Requires confirm=true; without it, no change is made.
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 / Marketplace frontend card).
Returns: {"status": "removed", "resource_id": ..., "result": ...} on
success.
Errors: {"error": "confirmation_required", "message": ..., "action": ...} when confirm is false.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"resource_id": "<resource_id>"
},
"name": "dashboards_remove_dashboard_resource"
}
}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 | |||