• Cloud Search Service

css
  1. Help Center
  2. Cloud Search Service
  3. API Reference
  4. APIs Related to Cluster Management
  5. Deleting a Cluster

Deleting a Cluster

Function

This API is used to delete a cluster. All resources, including customer data, of the deleted cluster will be released. For data security reasons, create a snapshot for the cluster that you want to delete.

URI

DELETE /v1.0/{project_id}/clusters/{cluster_id}
Table 1 Parameter description

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID.

cluster_id

Yes

String

ID of the cluster to be deleted.

Request

None

Response

None

Examples

Delete the cluster whose ID is 2a197c4d-5467-4003-931d-83ec49939cf.

Example request

DELETE /v1.0/6204a5bd270343b5885144cf9c8c158d/clusters/2a197c4d-5467-4003-931d-83ec49939cf

Example response

The returned value is empty.

Status Code

Table 2 describes the status code.

Table 2 Status code

Status Code

Code

Status Code Description

400

BadRequest

Invalid request.

The client should not repeat the request without modifications.

404

NotFound

The requested resource cannot be found.

The client should not repeat the request without modifications.

200

OK

The request is processed successfully.