Deleting Buckets

Application Scenario

You can delete unwanted buckets to free up the quota of buckets. Make sure that a bucket is emptied before you delete it.

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, that is, there is no fragment 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.

How to Use This Function

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

Tool

Reference

OBS Console

Deleting a Bucket

SDKs

OBS supports software development kits (SDKs) in mainstream programming languages. For details, see the developer guide on the SDK Overview page.

APIs

Deleting Buckets

OBS Browser+

-

obsutil

Deleting a Bucket

Causes of Bucket Deletion Failures and Solutions

For details, see Failure in Deleting a Bucket.