Help Center/ Domain Name Service/ API Reference/ APIs/ Tags/ Deleting a Resource Tag
Updated on 2025-10-30 GMT+08:00

Deleting a Resource Tag

Function

This API is used to delete a resource tag.

Calling Method

For details, see Calling APIs.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.

  • If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
  • If you are using identity policy-based authorization, the following identity policy-based permissions are required.

    Action

    Access Level

    Resource Type (*: required)

    Condition Key

    Alias

    Dependencies

    dns:tag:set

    Tagging

    zone

    g:ResourceTag/<tag-key>

    -

    -

    ptr

    g:ResourceTag/<tag-key>

URI

DELETE /v2/{project_id}/{resource_type}/{resource_id}/tags/{key}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID.

resource_type

Yes

String

Resource type. The value can be DNS-public_zone, DNS-private_zone, DNS-public_recordset, DNS-private_recordset, or DNS-ptr_record.

resource_id

Yes

String

Resource ID

key

Yes

String

Tag key.

The key cannot be left blank or be an empty string.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Definition

The user token.

The token can be obtained by calling an IAM API. The value of X-Subject-Token in the response header is the user token.

For details about how to obtain a user token, seeObtaining a User Token.

Constraints

N/A

Range

N/A

Default Value

N/A

Response Parameters

Status code: 204

Response to the request for deleting a resource tag

None

Example Requests

None

Example Responses

None

Status Codes

Status Code

Description

204

Response to the request for deleting a resource tag

Error Codes

See Error Codes.