Skip to content

mongoshield delete

Delete one backup by id (refuses held, locked or depended-on backups).

Terminal window
mongoshield delete <backup> [options]

Deletes the backup's manifest first, then its files, annotations and checkpoint. Refuses backups on hold, backups still write-once (retainDays / object lock) and backups an incremental backup depends on. Asks for confirmation (--yes in scripts).

ArgumentDescription
<backup>requiredThe exact backup id (not "latest")
OptionDescription
--from <storage-url>Where backups are stored: ./dir, file:///abs, s3://bucket/prefix (default: config).
--by <name>Who asked for the deletion, for the audit line (default: user@host).

The global options (--config, --json, --quiet, --verbose, --no-color, --yes) work here too.

Delete a backup taken by mistake:

Terminal window
mongoshield delete 2026-10-20T03-00-04Z_7f3a9c

In a script, with a JSON result:

Terminal window
mongoshield delete 2026-10-20T03-00-04Z_7f3a9c --yes --json