DeleteTags#

Description#

Delete tags.

Request Parameters#

Required parameters#

  • ResourceID.N — The IDs of the resources for which tags are to be deleted.

    • Type: Array of strings

    • Required: Yes

Optional parameters#

  • Tag.N — Tags to be deleted for all specified resources.

    • Type: List of Tag objects

    • Required: No

    • Usage:

      • If both Key and Value are specified, tags matching the specified parameters will be deleted.

      • If Key is specified but Value is not specified, all tags with the specified Key will be deleted.

      • If Key is specified and an empty string is passed as Value, all tags with the specified Key and an empty string in Value will be deleted.

      • If no parameter is passed, all tags of the specified resources will be deleted.

Response Elements#

  • requestId — The request ID.

    • Type: String

Examples#

c2-ec2 DeleteTags ResourceId.1 <instance-id> ResourceId.2 <volume-id> Tag.1.Key key1 Tag.1.Value value1 Tag.2.Key key2 Tag.2.Value value2
c2-ec2 DeleteTags ResourceId.1 <instance-id> ResourceId.2 <volume-id> Tag.1.Key key1 Tag.1.Value ""
c2-ec2 DeleteTags ResourceId.1 <instance-id> ResourceId.2 <volume-id> Tag.1.Key key1
c2-ec2 DeleteTags ResourceId.1 <instance-id> ResourceId.2 <volume-id>