tencent cloud

All product documents
Cloud Object Storage
Deleting Buckets - rb
Last updated: 2024-01-06 16:15:35
Deleting Buckets - rb
Last updated: 2024-01-06 16:15:35
The rb command is used to delete a bucket.

Command Syntax

./coscli rb cos://<bucket-name> [flag]
rb includes the following parameters:
Parameter Format
Description
Example
cos://<bucket-name>
Specifies the target bucket, which is accessible by using the bucket alias or bucket name configured in the configuration file as detailed in Download and Installation Configuration. If you use the bucket name for access, you also need to include the endpoint flag.
Access with the bucket alias: cos://example-alias
Access with the bucket name: cos://examplebucket-1250000000
rb includes the following optional flags:
Flag Abbreviation
Flag Name
Description
-h
--help
Views the usage of this command.
-r
--region
Indicates the region of the bucket.
Note:
The rb command can only delete empty buckets. If there are files in your bucket, use the rm and abort commands to clear the files and incomplete multipart uploads in the bucket respectively and then delete the bucket.
After you run the rb command to delete the bucket successfully, we recommend that you delete the bucket information in the configuration file. For command usage, see the following example.
For more general options for this command (such as switching buckets or user accounts), see Common Options.

Example

// Delete the bucket3 bucket.
./coscli rb cos://bucket3-1250000000 -e cos.ap-chengdu.myqcloud.com
// Update the configuration file.
./coscli config delete -a bucket3

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 available.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon