---
type: api
title: Cancel node shutdown preparations
description: Remove a node from the shutdown list so it can resume normal operations.
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v8/operation/operation-shutdown-delete-node
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v8/operation/operation-shutdown-delete-node
products:
  - Elasticsearch
---

# Cancel node shutdown preparations

Availability: 7.13+

## Paths

- `DELETE` `/_nodes/{node_id}/shutdown`

- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v8/authentication#apikeyauth)
- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v8/authentication#basicauth)
- [Bearer auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v8/authentication#bearerauth)

#### Path Parameters

- `node_id` (string)
  The node id of node to be removed from the shutdown state

## Description

Remove a node from the shutdown list so it can resume normal operations.
You must explicitly clear the shutdown request when a node rejoins the cluster or when a node has permanently left the cluster.
Shutdown requests are never removed automatically by Elasticsearch.

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

If the operator privileges feature is enabled, you must be an operator to use this API.

## Required authorization

* Cluster privileges: `manage`

## Query String Parameters

- `master_timeout` (string Duration · default: 30s)
  Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.
- `timeout` (string Duration · default: 30s)
  Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.

## Response

`application/json`

- `acknowledged` (boolean)
  For a successful response, this value is always true. On failure, an exception is returned instead.
## Code Examples

#### Console

```console
DELETE /_nodes/USpTGYaBSIKbgSUJR2Z9lg/shutdown
```

#### JavaScript

```javascript
const response = await client.shutdown.deleteNode({
  node_id: "USpTGYaBSIKbgSUJR2Z9lg",
});
```

#### Python

```python
resp = client.shutdown.delete_node(
    node_id="USpTGYaBSIKbgSUJR2Z9lg",
)
```

#### curl

```curl
curl -X DELETE "$ELASTICSEARCH_URL/_nodes/USpTGYaBSIKbgSUJR2Z9lg/shutdown" \
  -H "Authorization: ApiKey $ELASTIC_API_KEY"
```

#### Java

```java
client.shutdown().deleteNode(d -> d
    .nodeId("USpTGYaBSIKbgSUJR2Z9lg")
);
```

#### PHP

```php
$resp = $client->shutdown()->deleteNode([
    "node_id" => "USpTGYaBSIKbgSUJR2Z9lg",
]);
```

#### Ruby

```ruby
response = client.perform_request(
  "DELETE",
  "/_nodes/USpTGYaBSIKbgSUJR2Z9lg/shutdown",
  {},
)
```

## Response Examples

#### Shutdown delete node response example1

A successful response from `DELETE /_nodes/USpTGYaBSIKbgSUJR2Z9lg/shutdown`.

```json
{
    "acknowledged": true
}
```

