Last updated: 2019-10-15 19:48:50PDF
Buckets can be deleted via the console, APIs, or SDKs.
Only empty buckets can be deleted. If there are still objects in a bucket, its deletion will fail. Make sure that there are no objects in the bucket before deleting it.
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.
Via the COS Console
You can delete a bucket in the COS Console. For more information, see Deleting a Bucket in Console Guide.
Via REST API
You can use the REST API directly to initiate a bucket deleting request. For more information, see DELETE Bucket in API documentataion.
Via the SDK
You can directly call the bucket deleting method in the SDK. For more information, see the SDK documentation for the corresponding programming language below: