delete-bucket-tags
Deletes the tags configured for a bucket.
Usage notes
By default, an Alibaba Cloud account has the permissions to delete the tags of a bucket. If you want to use a RAM user or Security Token Service (STS) to delete the tags of a bucket, you must have the oss:DeleteBucketTags permission. For more information, see Attach a custom policy to a RAM user.
Command syntax
ossutil api delete-bucket-tags --bucket value [flags]
|
Parameter |
Type |
Description |
|
--bucket |
string |
The name of the bucket whose tags you want to delete. |
-
The delete-bucket-tags command corresponds to the DeleteBucketTags operation. For more information about the parameters in the DeleteBucketTags operation, see DeleteBucketTags.
-
For more information about supported global command-line options, see Global command-line options.
Examples
The following sample code provides an example on how to delete the tags of the bucket named examplebucket:
ossutil api delete-bucket-tags --bucket examplebucket