Remove/disconnect a given peer.
DELETEhttp://127.0.0.1:14265/api/core/v2/peers/:peerId
Remove/disconnect a given peer.
Request
Path Parameters
peerId stringrequired
Identifier of the peer.
Example: 12D3KooWMajsSUxSUFb3CRgmJvygYCGd27uMDdppVYNGud7xuKG5
Responses
- 204
- 400
- 403
- 404
- 500
Successful operation.
Unsuccessful operation: indicates that the provided data is invalid.
Unsuccessful operation: indicates that the endpoint is not available for public use.
Unsuccessful operation: indicates that the requested data was not found.
Unsuccessful operation: indicates that an unexpected, internal server error happened which prevented the node from fulfilling the request.
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X DELETE 'http://127.0.0.1:14265/api/core/v2/peers/:peerId'
ResponseClear