tencent cloud

Feedback

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
    
    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 avaliable.

    7x24 Phone Support