Help Center/ Enterprise Router/ API Reference/ APIs/ Tags/ Deleting Resource Tags
Updated on 2026-03-20 GMT+08:00

Deleting Resource Tags

Function

This API is used to delete tags from resources of a specific type.

Constraints

This API is idempotent. The key cannot be left blank or an empty string.

Calling Method

For details, see Calling APIs.

Authorization Information

Each account root user has all the permissions required to call all APIs, but IAM users must be assigned the following required identity policy-based permissions. For details about the required permissions, see Permissions Policies and Supported Actions.

Action

Access Level

Resource Type (*: required)

Condition Key

Alias

Dependencies

er:tags:delete

Write

routeTables

  • g:EnterpriseProjectId

  • g:ResourceTag/<tag-key>

-

-

instances

  • g:EnterpriseProjectId

  • g:ResourceTag/<tag-key>

attachments

  • g:EnterpriseProjectId

  • g:ResourceTag/<tag-key>

URI

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

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

key

Yes

String

Tag key

project_id

Yes

String

Project ID

resource_id

Yes

String

Resource ID.

resource_type

Yes

String

Tagged resource type.

  • instance: enterprise router

  • route-table: route table

  • vpc-attachment: VPC attachment

  • vgw-attachment: virtual gateway attachment

  • peering-attachment: peering connection attachment

  • vpn-attachment: VPN gateway attachment

  • gdgw-attachment: global DC gateway attachment

Request Parameters

None

Response Parameters

Status code: 204

No Content

None

Example Requests

DELETE https://{erouter-endpoint}/v3/cfa563efb77d4b6d9960781d82530fd8/instance/3320166e-b937-40cc-a35c-02cd3f2b3ee2/tags/key1

Example Responses

None

Status Codes

Status Code

Description

204

No Content

Error Codes

See Error Codes.