All Products
Search
Document Center

Object Storage Service:delete-object-tagging

Last Updated:Mar 20, 2026

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:DeleteObjectTagging permission. 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]
ParameterTypeDescription
--bucketstringName of the bucket.
--keystringFull path of the object.
--version-idstring(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