Deletes all tags from a specified object or a specific version of an object.
Usage notes
By default, an Alibaba Cloud account has permission to delete object tags. To delete tags as a RAM user or using Security Token Service (STS), grant the
oss:DeleteObjectTaggingpermission. For details, see Attach a custom policy to a RAM user.Without
--version-id, the command deletes tags from the current version of the object. To target a specific version, include--version-id.
Syntax
ossutil api delete-object-tagging --bucket <value> --key <value> [--version-id <value>] [flags]| Parameter | Type | Description |
|---|---|---|
--bucket | string | Name of the bucket. |
--key | string | Full path of the object. |
--version-id | string | (Optional) Version ID of the object. If specified, deletes tags from that version only. |
Note
This command corresponds to the DeleteObjectTagging API operation. For supported global flags, see Command-line options.
Example
Delete all tags from exampleobject:
ossutil api delete-object-tagging --bucket examplebucket --key exampleobject