30 days free. No credit card. Full access from the moment you connect your site.

Start free trial

Delete an UpdraftPlus Backup

updraftplus/delete-backup removes one set and its archive files from this server, and reports how much space that freed.

What it really removes is a recovery point. Whatever state the site was in at that moment can no longer be returned to.

Before you run it

This cannot be undone, and the thing being destroyed is the thing that undoes other mistakes. The call refuses without confirm: true. Copies held on remote storage are not removed — delete those in the storage provider itself if you mean to reclaim that space too.

At a glance

Abilityupdraftplus/delete-backup
ToolsetUpdraftPlus — toolset/updraftplus
GroupUpdraftPlus › Backup sets
RequiresUpdraftPlus, active on the site
Capabilitymanage_options
SafetyDestructive — deletes stored values, and refuses to run without confirm: true
RepeatableNot idempotent — each call changes the row set, so re-running is not a no-op
Ships inAcrossAI Abilities Manager 0.0.34 and later

How it works

The confirmation gate runs before any file is touched, so a refused call leaves the set intact.

Check updraftplus/get-status before deleting. If this is the newest set, or the only one that includes files, deleting it changes what the site can recover from in a way the free disk space does not advertise.

The response reports the files removed, the bytes freed and how many sets remain — so the cost of the deletion is visible in the same breath as the benefit.

Input

NameTypeRequiredWhat it is
idstringYesBackup identifier, exactly as returned by updraftplus/list-backups.
confirmbooleanYes — must be trueThe irreversibility gate. Without it the call is refused before anything is touched.

What comes back

NameTypeWhat it is
backup_idstringThe set that was deleted.
files_removedarrayThe archive files that were removed.
bytes_freedintegerHow much disk space that recovered.
remainingintegerHow many sets are left on this server.
notestringAnything else worth knowing.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation.

Example

Ask your assistant:

Delete the backup from August — we’re out of disk space and it’s the oldest.

It resolves to one call:

{
  "ability": "updraftplus/delete-backup",
  "parameters": {
    "id": "1756080000",
    "confirm": true
  }
}

Worth knowing

  • Not idempotent, and not reversible. The set is gone from this server.
  • Remote copies survive. If disk space was the goal, this achieved it; if removing the data was the goal, it did not.
  • Check remaining in the response. Going from two sets to one is a bigger change than it sounds.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading