> This page is for NVIDIA Kubernetes Engine.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nvke/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nvke/_mcp/server.

# Delete a node

DELETE https://nvke.acme.example/api/nodes/{nodeID}
Content-Type: application/json

Deletes a single node from a running cluster. Include a
`machineHealthIssue` to flag the underlying machine for repair.

For control-plane nodes, a delete sets `deleteRequested`; NVKE then
starts teardowns one node at a time. `forceUnreachable` is applied
automatically when the node is unhealthy.

Also returns 202, with no further effect, if the node, pool or cluster
is already being deleted or a delete is already requested.

Returns 400 when deletion would leave no joined control-plane node or
`machineHealthIssue` is invalid. Delete the cluster to remove its last
joined control-plane node.
Deleting a control-plane node requires controlPlaneVIP because the controller
replaces it. Worker node deletion is unaffected.


Reference: https://docs.nvidia.com/nvke/rest-api-reference/nodes/delete-node

## Authentication

- `Authorization` header (bearer token, required) — A JWT from an issuer the Operator has configured, carried as `Authorization: Bearer <token>`.

## Request

### Path parameters

- `nodeID` (string, required) — Node ID.

### Body (application/json)

This endpoint expects a DeleteNodeRequest.

- `machineHealthIssue` (MachineHealthIssue, optional) — Flags the underlying machine for repair.
- `forceUnreachable` (boolean, optional, default: false) — Treat the node as unreachable: graceful drain and shutdown are attempted, and failures are tolerated. Failures removing a control-plane node's etcd member are not tolerated.

## Response

### 202

Deletion started or, for control-plane nodes, recorded

## Errors

### 400 Bad Request Error

The request failed validation

- `message` (string, required) — What went wrong.

### 401 Unauthorized Error

No valid bearer token was presented.

- `message` (string, required) — What went wrong.

### 403 Forbidden Error

The token verified, but its subject matches no admission rule.

- `message` (string, required) — What went wrong.

### 404 Not Found Error

Node not found. No body is returned.

- `any`

## Types

### MachineHealthIssue

Flags the underlying machine for repair.

- `category` (string, required) — Issue category: one of Hardware, Network, Performance or Other.
- `summary` (string, required) — Short summary, 2 to 256 characters.
- `details` (string, optional) — Additional detail, 2 to 256 characters.

## Examples

**Request**

```json
{
  "machineHealthIssue": {
    "category": "Hardware",
    "summary": "Node only has 7 GPUs",
    "details": "The node reboot completed at 12:51Z and it started reporting XID 79 at 14:09Z"
  },
  "forceUnreachable": true
}
```

**Response**

```json
{}
```

**SDK Code**

```python Nodes_deleteNode_example
import requests

url = "https://nvke.acme.example/api/nodes/nodeID"

payload = {
    "machineHealthIssue": {
        "category": "Hardware",
        "summary": "Node only has 7 GPUs",
        "details": "The node reboot completed at 12:51Z and it started reporting XID 79 at 14:09Z"
    },
    "forceUnreachable": True
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.delete(url, json=payload, headers=headers)

print(response.json())
```

```javascript Nodes_deleteNode_example
const url = 'https://nvke.acme.example/api/nodes/nodeID';
const options = {
  method: 'DELETE',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"machineHealthIssue":{"category":"Hardware","summary":"Node only has 7 GPUs","details":"The node reboot completed at 12:51Z and it started reporting XID 79 at 14:09Z"},"forceUnreachable":true}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Nodes_deleteNode_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://nvke.acme.example/api/nodes/nodeID"

	payload := strings.NewReader("{\n  \"machineHealthIssue\": {\n    \"category\": \"Hardware\",\n    \"summary\": \"Node only has 7 GPUs\",\n    \"details\": \"The node reboot completed at 12:51Z and it started reporting XID 79 at 14:09Z\"\n  },\n  \"forceUnreachable\": true\n}")

	req, _ := http.NewRequest("DELETE", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Nodes_deleteNode_example
require 'uri'
require 'net/http'

url = URI("https://nvke.acme.example/api/nodes/nodeID")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"machineHealthIssue\": {\n    \"category\": \"Hardware\",\n    \"summary\": \"Node only has 7 GPUs\",\n    \"details\": \"The node reboot completed at 12:51Z and it started reporting XID 79 at 14:09Z\"\n  },\n  \"forceUnreachable\": true\n}"

response = http.request(request)
puts response.read_body
```

```java Nodes_deleteNode_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.delete("https://nvke.acme.example/api/nodes/nodeID")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"machineHealthIssue\": {\n    \"category\": \"Hardware\",\n    \"summary\": \"Node only has 7 GPUs\",\n    \"details\": \"The node reboot completed at 12:51Z and it started reporting XID 79 at 14:09Z\"\n  },\n  \"forceUnreachable\": true\n}")
  .asString();
```

```php Nodes_deleteNode_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('DELETE', 'https://nvke.acme.example/api/nodes/nodeID', [
  'body' => '{
  "machineHealthIssue": {
    "category": "Hardware",
    "summary": "Node only has 7 GPUs",
    "details": "The node reboot completed at 12:51Z and it started reporting XID 79 at 14:09Z"
  },
  "forceUnreachable": true
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Nodes_deleteNode_example
using RestSharp;

var client = new RestClient("https://nvke.acme.example/api/nodes/nodeID");
var request = new RestRequest(Method.DELETE);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"machineHealthIssue\": {\n    \"category\": \"Hardware\",\n    \"summary\": \"Node only has 7 GPUs\",\n    \"details\": \"The node reboot completed at 12:51Z and it started reporting XID 79 at 14:09Z\"\n  },\n  \"forceUnreachable\": true\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Nodes_deleteNode_example
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "machineHealthIssue": [
    "category": "Hardware",
    "summary": "Node only has 7 GPUs",
    "details": "The node reboot completed at 12:51Z and it started reporting XID 79 at 14:09Z"
  ],
  "forceUnreachable": true
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://nvke.acme.example/api/nodes/nodeID")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```