Skip to content

bhatti image delete

Delete an image.

bhatti image delete <name> [-y]

Removes the image record and the underlying ext4 file. Cannot be undone.

Sandboxes that were created from this image keep running — they have their own copy-on-write rootfs derived from the image at creation time. They don’t reference the original after boot.

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

You cannot delete a system tier image (minimal, browser, etc.) — those are owned by user_id="" and only the operator can remove them by removing the file from /var/lib/bhatti/images/.

Terminal window
bhatti image delete python-3.12
Delete image "python-3.12"? [y/N]: y
deleted
Terminal window
# Non-interactive
bhatti image delete python-3.12 -y
FlagDefaultDescription
-y, --yesfalseSkip confirmation.

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