Graphon API

S3 · Buckets

DeleteBucket

DELETE/{bucket}

Deletes an empty bucket.

The bucket must hold no objects. A deleted bucket stays restorable for seven days. Restore it with Restore a bucket.

View as Markdown
Role
Editor or higher
Support
Supported
  • The bucket must be empty. It stays restorable for seven days.

Path parameters

bucketstringrequired

The bucket name.

Headers

The workspace ID that must own the bucket. Another owner returns 403 AccessDenied.

Responses

204No Content

Storage deleted the bucket.

This response has no body.

Errors

Select an error in the response example to see its XML body. Any request can also get the common errors, such as SignatureDoesNotMatch.

409BucketNotEmpty

The bucket still holds objects.

What to do: Delete the objects first, then delete the bucket again.

404NoSuchBucket

No bucket has this name, or the bucket was deleted.

What to do: Check the bucket name. ListBuckets shows the buckets of the workspace.

403AccessDenied

The key does not have the role for this operation, or the bucket is in another workspace.

What to do: Use a key of the workspace that owns the bucket, with the role above.

Was this page helpful?