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

Deleting a Resource Tag

Function

This API is used to delete a resource tag.

Calling Method

For details, see Calling APIs.

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.