bhatti volume backup-delete
Delete a volume backup.
Synopsis
bhatti volume backup-delete <volume-name> <backup-id> [-y]
Description
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.
Examples
bhatti volume backup-delete workspace bk_a1b2c3d4
Delete backup bk_a1b2c3d4? [y/N]: y
deleted
# Non-interactive
bhatti volume backup-delete workspace bk_a1b2c3d4 -y
# 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
Options
| Flag | Default | Description |
| ---- | ------- | ----------- |
| -y, --yes | false | Skip confirmation. |
See Global flags for --url, --token, --json, --timing, --data-dir.