• Object Storage Service

  1. Help Center
  2. Object Storage Service
  3. User Guide (S3cmd)
  4. Operation Guide
  5. Bucket Management
  6. Deleting a Bucket

Deleting a Bucket

You can delete a specific empty bucket and a bucket created by yourself.

Before deleting a bucket, ensure that all objects in this bucket have been deleted and all multipart upload tasks are completed.


  1. Open the command line tool.
  2. Run the following command to delete a specific bucket:

    s3cmd rb s3://my-bucket


    my-bucket is the name of the bucket that you want to delete. For example, s3cmd rb s3://examplebucket indicates that the bucket to be deleted is examplebucket.

    If the following information is displayed in the command output, it indicates that this bucket is successfully deleted:
    Bucket 's3://my-bucket/' removed

  3. (Optional) Run the following command to check that the deleted bucket does not exist in the bucket list:

    s3cmd ls