---
title: "Leave Cluster"
method: DELETE
path: "/cluster/reset-node"
tags: ["Cluster"]
---

# Leave Cluster

`DELETE /cluster/reset-node`

Safely remove this node from Raft and clear its local cluster state.
Registered guests block a multi-node leave by default. Set retainGuests=true to keep local VM and jail registrations and release their cluster ID claims after membership removal. Other dependencies still block.

## Request body

- InternalHandlersClusterResetNodeRequest
  - `retainGuests` boolean

## Response `200`

Success

- GithubComAlchemillahqSylveInternalAPIResponseGithubComAlchemillahqSylveInternalServicesClusterClusterLeaveResult
  - `data` GithubComAlchemillahqSylveInternalServicesClusterClusterLeaveResult
    - `cleanupAcknowledged` boolean
    - `membershipRemoved` boolean
    - `retainedGuests` GithubComAlchemillahqSylveInternalServicesClusterGuestIdentityInventoryEntry[]
      - `guestId` integer
      - `guestType` string
      - `name` string
      - `nodeId` string
      - `recordId` integer
    - `status` GithubComAlchemillahqSylveInternalServicesClusterClusterLeaveStatus
      - `attempts` integer
      - `enabled` boolean
      - `lastError` string
      - `leaderIp` string
      - `leaveId` string
      - `localNodeId` string
      - `phase` string
      - `retainGuests` boolean
  - `error` string
  - `message` string
  - `status` string

## Other responses

- `202` — Leave pending
- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `409` — Leave conflict
- `500` — Internal Server Error
- `503` — Service Unavailable

## Changes

- **2026-09-25** `85f3f607253e` — 4 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `409`
  - added the non-success response with the status `503`
  - added the success response with the status `202`
- **2026-08-12** `9a5026bf9057` — 3 info
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`
  - removed the non-success response with the status `400`
- **2025-09-19** `dc875965a5da` — 1 info
  - endpoint added
- **2025-03-11** `2b736ca1b025` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/alchemillahq/apis/sylve-api/changes/cluster/reset-node/delete.md)

---

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