Distributed

Remove peer from cluster

DEL
Attempts to remove the node from the cluster. This endpoint returns an error if the node (peer) has shards on it.

Path parameters

peer_idintegerRequired
Id of the peer

Query parameters

forcebooleanOptional
If true - removes peer even if it has shards/replicas on it.

Response

This endpoint returns an object
time
doubleOptional
Time spent to process this request
status
stringOptional
result
booleanOptional
DEL
1curl -X DELETE http://localhost:6333/cluster/peer/1 \
2 -H "api-key: <apiKey>"
200Deleted
1{
2 "time": 1.1,
3 "status": "status",
4 "result": true
5}