The command delete-object-tagging is used to delete the tags of a specified object.
Usage notes
By default, an Alibaba Cloud account has the permissions to delete the tags of a specified object. Deleting tags as a RAM user or by using Security Token Service (STS) requires
oss:DeleteObjectTaggingpermissions. For more information, see Attach a custom policy to a RAM user.By default, when you use the delete-object-tagging command, the tags of the current version of the object are deleted. You can specify the version-Id parameter in the request to delete the tags of a specified version of an object.
Command syntax
ossutil api delete-object-tagging --bucket value --key value [flags]Parameter | Type | Description |
--bucket | string | Name of the bucket. |
--key | string | Full path of the object. |
--version-id | string | Version ID of the object that you want to delete. |
The delete-object-tagging command corresponds to the DeleteObjectTagging operation. For more information about the parameters in the DeleteObjectTagging operation, see DeleteObjectTagging.
For more information about supported global command-line options, see Command-line options.
Example
Delete the tags of exampleobject.
ossutil api delete-object-tagging --bucket examplebucket --key exampleobject