Skip to content

bhatti destroy

Permanently destroy a sandbox. Aliased as bhatti rm.

bhatti destroy <sandbox> [-y]
bhatti rm <sandbox> [-y]

Kills the Firecracker process, removes the rootfs and snapshot files, releases the IP, deletes the TAP device, and removes the sandbox record from the database. This cannot be undone.

Persistent volumes attached to the sandbox are detached but not deleted — their data survives. Use bhatti volume delete to remove a volume. Published URLs are automatically cleaned up.

By default, destroy prompts for confirmation. In a non-interactive shell without -y, the command refuses to proceed and exits 1. Pass -y / --yes to skip the prompt.

Terminal window
bhatti destroy dev
Destroy sandbox "dev"? [y/N]: y
sandbox/dev destroyed
Terminal window
# Non-interactive (CI / scripts)
bhatti destroy dev -y
Terminal window
# Tear down everything you own
bhatti list --json | jq -r '.[].name' | xargs -I{} bhatti destroy {} -y
FlagDefaultDescription
-y, --yesfalseSkip the interactive confirmation. Required for non-interactive use.

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

CodeMeaning
0Destroyed.
1Sandbox not found, or non-interactive shell without -y.