Skip to content

bhatti volume delete

Delete a persistent volume. Cannot be undone.

Synopsis

bhatti volume delete <name> [-y]

Description

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.

Examples

bhatti volume delete workspace
Delete volume "workspace"? [y/N]: y
deleted
# Non-interactive
bhatti volume delete workspace -y
# Volume still attached
bhatti volume delete workspace -y
409 Conflict: volume "workspace" attached to sandbox "dev"

Options

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

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

See also