Delete desired nodes API

Delete desired nodes API

This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.

New API reference

For the most up-to-date API details, refer to Cluster APIs.

Delete desired nodes.

Request

  1. resp = client.perform_request(
  2. "DELETE",
  3. "/_internal/desired_nodes",
  4. )
  5. print(resp)
  1. const response = await client.transport.request({
  2. method: "DELETE",
  3. path: "/_internal/desired_nodes",
  4. });
  5. console.log(response);
  1. DELETE /_internal/desired_nodes

Description

This API deletes the desired nodes.

Examples

This example deletes the current desired nodes.

  1. resp = client.perform_request(
  2. "DELETE",
  3. "/_internal/desired_nodes",
  4. )
  5. print(resp)
  1. const response = await client.transport.request({
  2. method: "DELETE",
  3. path: "/_internal/desired_nodes",
  4. });
  5. console.log(response);
  1. DELETE /_internal/desired_nodes