You can call this operation to delete one or more tags.

Debugging

Alibaba Cloud provides OpenAPI Explorer to simplify API usage. You can use OpenAPI Explorer to search for API operations, call API operations, and dynamically generate SDK sample code.

Request parameters

Parameter Type Required Example Description
Action String Yes RemoveTags

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

GroupIds.N RepeatList Yes 12345

The ID of the resource group to which the tags are attached.

Tag.N.Key String Yes tagKey1

The key of the tag that you want to delete.

Note The Tag.N.Key and Tag.N.Value parameters must be set at the same time.
Tag.N.Value String Yes tagValue1

The value of the tag that you want to delete.

Note The Tag.N.Key and Tag.N.Value parameters must be set at the same time.

Response parameters

Parameter Type Example Description
RequestId String 195390D2-69D0-4D9E-81AA-A7F5BC1B91EB

The ID of the request.

Code String 200

The HTTP status code.

Note A value of 200 indicates that the call is successful.
Success Boolean true

Indicates whether the call is successful. A value of true indicates that the call is successful. A value of false indicates that the call has failed.

Tag List tag1

The list of deleted tags.

Tags

The list of deleted tags.

Message String success

The error message.

Note If the status code 200 is returned, no error occurs.

Examples

Sample requests


http(s)://[Endpoint]/? Action=RemoveTags
&GroupIds.1=12345
&Tag.1.Key=tagKey1
&Tag.1.Value=tagValue1
&<Common request parameters>

Sample success responses

XML format

<RequestId>195390D2-69D0-4D9E-81AA-A7F5BC1B91EB</RequestId>
<Success>true</Success>
<Code>200</Code>

JSON format

{
	"RequestId":"195390D2-69D0-4D9E-81AA-A7F5BC1B91EB",
	"Success":true,
	"Code":200
}

Error codes

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