Skip to content

bhatti volume backup-delete

Delete a volume backup.

bhatti volume backup-delete <volume-name> <backup-id> [-y]

Removes the backup record from the server and deletes the corresponding object in S3. Cannot be undone.

By default, prompts for confirmation. In a non-interactive shell without -y, the command refuses and exits 1.

Terminal window
bhatti volume backup-delete workspace bk_a1b2c3d4
Delete backup bk_a1b2c3d4? [y/N]: y
deleted
Terminal window
# Non-interactive
bhatti volume backup-delete workspace bk_a1b2c3d4 -y
Terminal window
# Trim to last 7 backups
bhatti volume backup-list workspace --json \
| jq -r 'sort_by(.created_at) | reverse | .[7:][] | .id' \
| xargs -I{} bhatti volume backup-delete workspace {} -y
FlagDefaultDescription
-y, --yesfalseSkip confirmation.

See Global flags for --url, --token, --json, --timing, --data-dir.