All Products
Search
Document Center

Function Compute:UntagResource

Last Updated:Aug 21, 2025

You can call this operation to delete tags from a resource.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. You can use OpenAPI Explorer to search for API operations, call API operations, and dynamically generate SDK sample codes.

Request headers

This operation uses only common request headers. For more information, see Common parameters.

Request syntax

DELETE /tag 

Request parameters

Parameter

Type

Position

Required

Example

Description

Object

Body

Yes

The definition of the tag to be deleted.

resourceArn

String

Body

Yes

acs:fc:cn-shanghai:18807708****6900:services/service_name

The Alibaba Cloud Resource Name (ARN).

Note

You can use the value of this parameter to query information about the resource, such as the account, service, and region of the resource.

tagKeys

Array of String

Body

Yes

1

The key of the tag.

all

Boolean

Body

Yes

false

Specifies how to delete tags. Default value: false. Valid values:

  • false: delete the specified tag.

  • true: delete all tags.

Examples

Sample requests

DELETE /2016-08-15/tag HTTP/1.1
            

Sample success responses

JSON format

HTTP/1.1 200 OK Common response headers