Updated on 2025-08-28 GMT+08:00

Deleting a Cluster

Function

This API is used to delete a cluster.

Calling Method

For details, see Calling APIs.

URI

DELETE /v1.1/{project_id}/clusters/{cluster_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID. For details about how to obtain it, see Project ID and Account ID.

cluster_id

Yes

String

Cluster ID

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token.

It can be obtained by calling the IAM API (value of X-Subject-Token in the response header).

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

keep_last_manual_backup

Yes

Integer

Number of backup log files. Retain the default value 0.

Response Parameters

Status code: 202

Table 4 Response body parameters

Parameter

Type

Description

jobId

String

Job ID

Example Requests

DELETE /v1.1/1551c7f6c808414d8e9f3c514a170f2e/clusters/6ec9a0a4-76be-4262-8697-e7af1fac7920

{
  "keep_last_manual_backup" : 0
}

Example Responses

Status code: 202

Accepted.

{
  "jobId" : "ff8080815e55125a015e552eddba001a"
}

Status Codes

Status Code

Description

202

Accepted.

400

Request error.

401

Authorization failed.

403

No operation permissions.

404

No resources found.

500

Internal service error. For details about the returned error code, see Error Codes.

503

Service unavailable.

Error Codes

See Error Codes.