Skip to content

bhatti snapshot delete

Delete a named snapshot.

Synopsis

bhatti snapshot delete <snapshot-name> [-y]

Description

Removes the snapshot record and the on-disk snapshot files (mem.snap, vm.snap, copied rootfs). Cannot be undone.

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

Sandboxes that were previously resumed from this snapshot are unaffected — they have their own copy of the state and don't reference the original.

Examples

bhatti snapshot delete pre-experiment
Delete snapshot "pre-experiment"? [y/N]: y
deleted
# Non-interactive
bhatti snapshot delete pre-experiment -y

Options

| Flag | Default | Description | | ---- | ------- | ----------- | | -y, --yes | false | Skip confirmation. |

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

See also