Updated on 2024-11-26 GMT+08:00

Deleting a Bucket

You can use OBS Console, APIs, SDKs, OBS Browser+, or obsutil to delete unwanted or empty buckets to free up the quota of buckets.

An empty bucket must meet the following requirements:

  • There is no object or any historical version of an object in the bucket.
  • There is not any incomplete multipart upload in the bucket. In other words, there are no fragments in the bucket.
    • If versioning is enabled for the bucket, ensure that all historical versions and versions with the Delete Marker (which are also considered as historical versions) have been deleted.
    • The name of a deleted bucket can be reused at least 30 minutes after the deletion.

Prerequisites

  • All objects in the bucket have been permanently deleted. A bucket must be emptied before it can be deleted.

    Objects under the Objects, Deleted Objects, and Fragments tabs must be all deleted.

  • A bucket can only be deleted by the bucket owner.

Ways to Delete a Bucket

You can use OBS Console, APIs, SDKs, OBS Browser+, or obsutil to delete a bucket.