bhatti destroy
Permanently destroy a sandbox. Aliased as bhatti rm.
Synopsis
Section titled “Synopsis”bhatti destroy <sandbox> [-y] bhatti rm <sandbox> [-y]
Description
Section titled “Description”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.
Examples
Section titled “Examples”bhatti destroy devDestroy sandbox "dev"? [y/N]: ysandbox/dev destroyed# Non-interactive (CI / scripts)bhatti destroy dev -y# Tear down everything you ownbhatti list --json | jq -r '.[].name' | xargs -I{} bhatti destroy {} -yOptions
Section titled “Options”| Flag | Default | Description |
|---|---|---|
-y, --yes | false | Skip the interactive confirmation. Required for non-interactive use. |
See Global flags for --url, --token, --json, --timing, --data-dir.
Exit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
0 | Destroyed. |
1 | Sandbox not found, or non-interactive shell without -y. |
See also
Section titled “See also”bhatti stop— pause without destroying (data preserved)bhatti volume delete— detached volumes don’t go with the sandbox- API:
DELETE /sandboxes/:id