Deleting Buckets

Last updated: 2020-12-28 15:04:58

    Buckets can be deleted through the console, APIs, tools, or SDKs.


    Please note that a bucket cannot be recovered once deleted.

    Use Limits

    • Only empty buckets can be deleted. If there are still objects or incomplete multipart uploads in a bucket, its deletion will fail. Make sure that there are no objects in the bucket before deleting it. For more information, please see Emptying Buckets.
    • Before deleting a bucket, make sure that the current identity has been granted the permission to delete it and that the correct Bucket and Region parameters are passed in.


    Using COS console

    You can delete a bucket in the COS console. For more information, please see Deleting Buckets in Console Guide.

    Using tools

    You can use tools such as COSBrowser and COSCMD to delete buckets. For more information, please see Tool Overview.

    Using REST APIs

    You can use the REST API directly to initiate a bucket deleting request. For more information, please see DELETE Bucket in API documentation.

    Using SDKs

    You can directly call the bucket deleting method in the SDK. For more information, please see the SDK documentation for the corresponding programming language below: