Delete cluster

Deletes an Elasticsearch cluster. Requires that you have already successfully issued a _shutdown command against the cluster.

Request

DELETE /api/v1/clusters/elasticsearch/{cluster_id}

Path Parameters

cluster_id (required)
(string) Identifier for the Elasticsearch cluster

Responses

200
(EmptyResponse) The cluster has been successfully deleted
404
(BasicFailedReply) The cluster specified by {cluster_id} cannot be found (code: 'clusters.cluster_not_found')
412
(BasicFailedReply) The Elasticsearch cluster has not been shutdown yet (code: 'clusters.cluster_plan_state_error')
449
(BasicFailedReply) When running as an administrator (other than root), sudo is required (code: 'root.needs_sudo')