Out Plane
bucket

bucket delete

Permanently destroy a bucket, its files and its keys.

destructive--dry-run

Deleting a bucket removes every file and key, and it cannot be undone. The bucket leaves the list at once. Its files and keys can keep answering for some minutes. Applications holding a key are not updated, so move them off first.

Like every deletion it never prompts. It stops, hands back the exact command that would proceed, and leaves the decision to whoever is allowed to make it. The bucket's own name has to be typed again.

Usage

outplane bucket delete <BUCKET> [flags]

Arguments

ArgumentTypeDescription
BUCKETstringThe bucket's name or id, not its bucketName. Required.

Flags

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

The global flags apply as well.

Output

FieldTypeDescription
idstring
namestringWhat the platform calls it, unique in the team.
bucketNamestringThe name S3 clients use. It carries a suffix, so it differs from name.
publicboolThe setting last accepted: whether anyone with a file's link can read it. A change takes minutes to reach every request. Listing stays off either way.
endpointstringThe S3 endpoint. Clients need virtual-hosted addressing; path-style requests fail.
regionstringThe region clients sign with, always auto.
urlstringThe bucket's own address. It serves a file without a signature only when the bucket is public, and after a change to private it can keep doing so for some minutes.
createdAtstring | nullRFC 3339, UTC.
changedboolTrue only when it was destroyed.

Examples

See what would be destroyed

outplane bucket delete uploads --dry-run

The confirmed form, which a human approves

outplane bucket delete uploads --yes --confirm-name uploads

Check what the name resolves to

outplane bucket delete uploads --dry-run --json
{
  "changed": false,
  "name": "uploads",
  "public": false
}

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.
  • Irreversible. Every file and every key goes, and there is no snapshot and no retention window.
  • The bucket leaves bucket list at once while the deletion finishes in the background, so its files and keys can keep answering for some minutes.
  • Applications holding a key are not updated.

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, bucket.confirm_name_mismatch, bucket.not_found, usage.missing_argument, usage.empty_argument, context.no_team. Branch on that, or on the exit status. The message is prose and changes.

On this page