Skip to main content
Version: 2.11

Remove Peer

Removes a peer from a stream cluster.

Subject

$JS.API.STREAM.PEER.REMOVE.{stream}

Where {stream} is the name of the stream.

Request

A request to the JetStream $JS.API.STREAM.PEER.REMOVE API

peerstringrequired
Server name of the peer to remove
Min length:1

Response

A response from the JetStream $JS.API.STREAM.PEER.REMOVE API

One of the following:
Option 1 (object)
errorobjectrequired
Option 2 (object)
successbooleanrequired
If the peer was successfully removed
Default:false
typeconst: "io.nats.jetstream.api.v1.stream_remove_peer_response"