Skip to content

bhatti volume delete

Delete a persistent volume. Cannot be undone.

bhatti volume delete <name> [-y]

Removes the volume record from the database and deletes the underlying ext4 file.

The volume must be detached before deleting — if any sandbox has it mounted, the server returns 409 Conflict. Stop or destroy the sandbox first, then retry.

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

Terminal window
bhatti volume delete workspace
Delete volume "workspace"? [y/N]: y
deleted
Terminal window
# Non-interactive
bhatti volume delete workspace -y
Terminal window
# Volume still attached
bhatti volume delete workspace -y
409 Conflict: volume "workspace" attached to sandbox "dev"
FlagDefaultDescription
-y, --yesfalseSkip confirmation.

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