[#CConnman-DisconnectNode-0f]
= xref:CConnman.adoc[CConnman]::DisconnectNode
:relfileprefix: ../
:mrdocs:

Disconnect the peer with the given id, returning whether it was found&period;

== Synopsis

Declared in `&lt;net&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e2b74a068), requires&lowbar;capability(0x7f2e28942d78), requires&lowbar;capability(0x7f2e234d1f58), requires&lowbar;capability(0x7f2e2737e6f8), requires&lowbar;capability(0x7f2e235efd88), requires&lowbar;capability(0x7f2e2a34be78), requires&lowbar;capability(0x7f2e219f8c48), requires&lowbar;capability(0x7f2e21c83b08), requires&lowbar;capability(0x7f2e1aa36668), requires&lowbar;capability(0x7f2e376b8748), requires&lowbar;capability(0x7f2e433ce2d8)&rsqb;&rsqb;
bool
DisconnectNode(xref:NodeId-08.adoc[NodeId] id);
----

== Return Value

true if the peer was found and disconnected&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *id*
| the id of the peer to disconnect&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
