You can call this operation to delete tags that are attached to one or more resources.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes UntagResources

The operation that you want to perform. Set the value to UntagResources.

RegionId String Yes cn-hangzhou

The ID of the region.

ResourceIds Json Yes ["templateNam1","templateName2"]

The IDs of resources. The number of resource IDs ranges from 1 to 50.

ResourceType String Yes template

The type of the resource. Valid values:



All Boolean No false

Specifies whether to delete all tags. This parameter takes effect only when the TagKeys parameter is not specified. Valid values: true and false. Default value: false. The TagKeys parameter is required when this parameter is set to false.

TagKeys Json No ["k1","k2"]

The tag keys. The number of keys ranges from 1 to 20.

Response parameters

Parameter Type Example Description
RequestId String 491DF8C2-34C9-4679-9DB3-4C0F49B129AC

The ID of the request.


Sample requests

http(s)://[Endpoint]/? Action=UntagResources
&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

For a list of error codes, visit the API Error Center.