Remove an Object Storage bucket

Removes a single bucket.

📘

  • You need to remove all objects from a bucket before you can delete it. While you can delete a bucket using the s3cmd command-line tool, this operation fails if the bucket contains too many objects. The best way to empty large buckets is to use the S3 API to configure lifecycle policies. Set a policy to remove all objects, wait a day or more for the system to remove all objects, then delete the bucket.

  • The S3 API equivalent operation offers more detail.


OAuth scopes

object_storage:read_write

Learn more...

Language
Credentials
Click Try It! to start a request and see the response here!