The rb
command is used to delete a bucket.
./coscli rb cos://<BucketName-APPID> -r <Region> [flag]
rb
includes the following optional flags:
Flag Abbreviation | Flag Name | Description |
---|---|---|
None | BucketName-APPID | Specifies the name of the bucket to be deleted, such as examplebucket-1250000000 |
-r | --region | Indicates the region of the bucket |
Note:For other common options of this command (such as switching bucket and user account), see Common Options.
// Delete the bucket3 bucket.
./coscli rb cos://bucket3-1250000000 -r ap-chengdu
// Update the configuration file.
./coscli config delete -a bucket3
Was this page helpful?