Delete a Supervisor backup
supervisor_delete_backupPermanently delete a single Home Assistant backup after explicit confirmation. Use it to clean up a backup that is confirmed no longer needed; deletion has no undo.
Instructions
Permanently delete one backup after an explicit confirmation.
Calls DELETE /backups/<slug>. Without confirm=True nothing is
deleted; the call only returns a confirmation prompt. There is no undo
once the backup file is gone — a backup is itself the undo mechanism
for every other change in this add-on.
Use when: cleaning up a backup that is confirmed to be no longer
needed.
Not for: any situation where the backup might still be needed — there
is no recovery after this call, even with confirm=True.
Returns: Supervisor's delete result when confirmed, otherwise a
confirmation prompt.
Errors: {"error": "invalid_slug"} for a bad slug; returns {"error": "confirmation_required", "message": ..., "action": ...} when confirm is false; {"error": "SUPERVISOR_TOKEN not set — Nexus must run as HA add-on for Supervisor API"} when the
token env var is missing; {"error": "HTTP <status>", "detail": ...}
if the slug does not exist.
Limits: requires confirm=True; deletion is immediate and permanent
with no undo once confirmed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Backup slug to delete, from `supervisor_list_backups`. | |
| confirm | No | Set true to actually delete the backup. False (default) performs no action and instead returns a confirmation prompt; the backup is not looked up or touched in that case. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||