Deleting a Bucket

If a bucket is empty, you can delete the bucket. If the bucket is not empty, deleting the bucket is not allowed.

An empty bucket must meet the following requirements:

  • There is no object or any historical version of an object in the bucket.
  • There is no unmerged multipart upload task in the bucket.

    Before deleting a bucket, you can check whether the bucket is empty by listing objects and multipart tasks in the bucket. OBS supports the versioning feature. Therefore, before deleting a bucket, check whether the bucket is enabled with versioning and whether historical versions and delete marks exist. (A delete mark is considered as a historical version.)