tencent cloud


Deleting Buckets - rb

Terakhir diperbarui:2023-04-17 15:29:38

    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.

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


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

    Hubungi tim penjualan atau penasihat bisnis kami untuk membantu bisnis Anda.

    Dukungan Teknis

    Buka tiket jika Anda mencari bantuan lebih lanjut. Tiket kami tersedia 7x24.

    Dukungan Telepon 7x24