"title":"Command for disconnecting from another lightning node",
"description":[
"The disconnect RPC command closes an existing connection to a peer, identified by *id*, in the Lightning Network, as long as it doesn't have an active channel."
],
"request":{
"required":[
"id"
],
"properties":{
"id":{
"type":"pubkey",
"description":[
"The public key of the peer to terminate the connection. It can be discovered in the output of the listpeers command, which returns a set of peers:",
"{",
" 'peers':",
" [",
" {",
" 'id': '0563aea81...',",
" 'connected': true,",
" ...",
" }",
" ]",
"}"
]
},
"force":{
"type":"boolean",
"description":[
"If set to True, it will disconnect even with an active channel."
]
}
}
},
"response":{
"properties":{}
},
"errors":[
"On error the returned object will contain `code` and `message` properties, with `code` being one of the following:",