You can call the UntagResources operation to remove a tag from a resource.

Request parameters

Parameter Type Required Description
Action String Yes The operation that you want to perform. Set this parameter to UntagResources.
ResourceId.N String Yes The ID of the resource to remove the tag from. Specify a CDN domain name as the resource ID. Valid values of N: 1 to 50.
ResourceType String Yes The resource type. Set this value to DOMAIN.
TagKey.N String Yes The key of the tag. Valid values of N: 1 to 20.

Examples

Sample request

https://cdn.aliyuncs.com/?Action=UntagResoruces
&ResourceId. 1=example.com
&ResourceType=DOMAIN
&TagKey. 1=env
&<Common request parameters>

Sample success response

JSON format

{
"RequestId":"97C68796-EB7F-4D41-9D5B-12B909D76508"
}