Deletes the tags configured for a bucket.
Usage notes
By default, an Alibaba Cloud account has permission to delete bucket tags. To perform this operation as a RAM user or with Security Token Service (STS) credentials, the oss:DeleteBucketTags permission is required. For instructions, see Attach a custom policy to a RAM user.
Syntax
ossutil api delete-bucket-tags --bucket <value> [flags]Options
| Option | Type | Required | Description |
|---|---|---|---|
--bucket | string | Yes | The name of the bucket whose tags you want to delete. |
For global command-line options supported by all ossutil commands, see Global command-line options.
This command corresponds to the DeleteBucketTags API operation.
Examples
Delete the tags from the bucket named examplebucket:
ossutil api delete-bucket-tags --bucket examplebucket