---
title: "Remove Peer"
method: POST
path: "/cluster/remove-node"
tags: ["Cluster"]
---

# Remove Peer

`POST /cluster/remove-node`

Ask an online peer to fence local work, leave Raft, and clear its cluster state

## Request body

- InternalHandlersClusterRemovePeerRequest
  - `nodeId` string, required

## Response `200`

Success

- GithubComAlchemillahqSylveInternalAPIResponseGithubComAlchemillahqSylveInternalServicesClusterClusterLeaveResult
  - `data` GithubComAlchemillahqSylveInternalServicesClusterClusterLeaveResult
    - `cleanupAcknowledged` boolean
    - `membershipRemoved` boolean
    - `status` GithubComAlchemillahqSylveInternalServicesClusterClusterLeaveStatus
      - `attempts` integer
      - `enabled` boolean
      - `lastError` string
      - `leaderIp` string
      - `leaveId` string
      - `localNodeId` string
      - `phase` string
  - `error` string
  - `message` string
  - `status` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `409` — Peer owns cluster resources
- `500` — Internal Server Error
- `503` — Service Unavailable

## Changes

- **2026-08-28** `afb6dfed3935` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/alchemillahq/apis/sylve-api/changes/cluster/remove-node/post.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-service-production.skmtc.workers.dev/v1/apis/alchemillahq/sylve-api/revisions/b7a0c0d622eb/schema)
