---
title: "Delete a node"
method: DELETE
path: "/v1/kubernetes/clusters/{id}/nodes/{nodeId}"
tags: ["Kubernetes"]
---

# Delete a node

`DELETE /v1/kubernetes/clusters/{id}/nodes/{nodeId}`

Removes the node from the cluster and releases its host, draining it first unless drain is false; poll getKubernetesNode, which answers 404 once removal completes. Its pool's count drops by one, so the node is not replaced. The pool's last node is not deleted: that answers 409 LAST_NODE_IN_POOL, and deleting the pool removes it. A cluster that is deleting answers 409 INVALID_CLUSTER_STATE. Needs clusters:write on an API key, or the owner, admin or member role on a session.

## Path parameters

- `id` string, required
- `nodeId` string, required

## Query parameters

- `drain` boolean

## Response `202`

Removal started

- KubernetesNodeDeleteAccepted — A node removal was accepted; the node leaves the cluster in the removal order.
  - `id` string, required — The node being removed.

## Other responses

- `400` — The request is invalid
- `401` — Missing or invalid API key
- `403` — The caller is authenticated but may not do this. The caller's role or the API key's scope does not allow it, or the request targets another organization (FORBIDDEN, or NOT_A_MEMBER for a session), or the organization is suspended pending review (ORG_SUSPENDED) or has been deleted (ORG_DISABLED). A new API key or a wider scope clears neither of the last two; see [Account and balance refusals](https://docs.openrelay.inc/docs/errors#account-and-balance-refusals).
- `404` — Resource not found
- `409` — The request conflicts with existing state

## Changes

- **2026-10-03** `bcf63adad2c3` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/openrelay/apis/openrelay-api/changes/v1/kubernetes/clusters/:id/nodes/:nodeId/delete.md)

---

[API](https://skmtc.dev/openrelay/apis/openrelay-api.md) · [All operations](https://skmtc.dev/openrelay/apis/openrelay-api/llms.txt) · [OpenAPI document](https://skmtc.dev/openrelay/apis/openrelay-api/revisions/bcf63adad2c3?raw)
