Updated on 2026-09-02 GMT+08:00

Deleting a Cluster Tag

Function

Tags are cluster identifiers. You can add tags to clusters to identify and manage cluster resources.

This API is used to delete cluster tags that are no longer needed.

Calling Method

For details, see Calling APIs.

URI

DELETE /v1.0/{project_id}/{resource_type}/{cluster_id}/tags/{key}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Definition

Project ID. For details about how to obtain the project ID and name, see Obtaining the Project ID and Name.

Constraints

N/A

Range

Project ID of an account. The value contains 32 characters, consisting of lowercase letters and digits.

Default Value

N/A

cluster_id

Yes

String

Definition

ID of the cluster that you want to delete tags from. For details about how to obtain the cluster ID, see Obtaining the Cluster ID.

Constraints

N/A

Range

The value is a UUID containing 36 characters.

Default Value

N/A

resource_type

Yes

String

Definition:

Resource type. Currently, its value can only be css-cluster.

Constraints:

N/A

Value range:

css-cluster: Indicates the cluster type.

Default value:

N/A

key

Yes

String

Definition

Name of the tag to delete.

Constraints

If the tag key is in Chinese, it must be URL-encoded before calling this API.

Range

The value can contain 1 to 128 characters. Only digits, letters, hyphens (-), and underscores (_) are allowed.

Default Value

N/A

Request Parameters

None

Response Parameters

Status code: 204

Request succeeded.

None

Example Requests

Delete the tags of a cluster.

DELETE https://{Endpoint}/v1.0/{project_id}/css-cluster/a3f7b2c1-9d4e-4f8a-b6c3-1e2a5d7f9b04/tags/K1

Example Responses

None

Status Codes

Status Code

Description

204

Request succeeded.

400

Invalid request.

The client should modify the request instead of re-initiating it.

404

The requested resource could not be found.

The client should not repeat the request without modifications.

Error Codes

See Error Codes.