Out Plane
volume

volume delete

Permanently destroy a disk and its contents.

destructive--dry-run

Destroys a disk and its contents. There is no snapshot and no retention window.

An attached disk cannot be deleted. volume detach first, which is the platform making sure no application is still using it.

Usage

outplane volume delete <VOLUME> [flags]

Arguments

ArgumentTypeDescription
VOLUMEstringVolume name or id. Required.

Flags

FlagTypeDescription
-y, --yesboolAcknowledge the deletion. Not sufficient on its own.
--confirm-namestringThe disk's name, typed again.

The global flags apply as well.

Output

FieldTypeDescription
idstring
namestring
sizeGbint10 to 50, and fixed once created.
statusstringOne of attached, detached.
appstring | nullThe application it is mounted on.
appIdstring | null
mountPathstring | nullWhere it appears inside the container.
accessModestringAlways ReadWriteOnce: one instance mounts it at a time.
createdAtstring | nullRFC 3339, UTC.
changedboolTrue only when it was destroyed.

Examples

See what would be destroyed

outplane volume delete data --dry-run

The confirmed form, which a human approves

outplane volume delete data --yes --confirm-name data

Check what the name resolves to, and what is on it

outplane volume delete data --dry-run --json
{
  "changed": false,
  "name": "data",
  "sizeGb": 10
}

What to Know

  • This command never prompts. Without confirmation it exits 4 and returns the command to replay in the error's confirm_command field.
  • Under a detected agent harness it exits 4 even with both flags, so the approval stays with whoever is accountable for the data.
  • An attached disk cannot be deleted. Detach it first, which is the platform making sure the application is not using it.
  • Irreversible. There is no snapshot and no retention window.

Errors

Beyond 0 for success, this command exits with:

ExitKindMeaning
2usageInvalid arguments, unknown flag, or client-side validation failure.
3authNot authenticated, token revoked or expired, or forbidden for this team.
4confirmation_requiredA destructive operation stopped. Replay the command in confirm_command.
5not_foundThe named resource does not exist, or is not visible to this credential.
8upstreamThe Out Plane API returned a server error.

The code on the error object is one of confirmation.required, volume.confirm_name_mismatch, volume.not_found. Branch on that, or on the exit status. The message is prose and changes.

On this page