[#ChainstateManager-RemoveChainstate]
= xref:ChainstateManager.adoc[ChainstateManager]::RemoveChainstate
:relfileprefix: ../
:mrdocs:

Remove a chainstate&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f9513c47580), requires&lowbar;capability(0x7f9502de8d20), requires&lowbar;capability(0x7f950b21b4f0), requires&lowbar;capability(0x7f9514bf54e0)&rsqb;&rsqb;
std::unique&lowbar;ptr&lt;Chainstate&gt;
RemoveChainstate(xref:Chainstate.adoc[Chainstate]& chainstate);
----

== Return Value

The removed chainstate, or nullptr if it was not found&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *chainstate*
| The chainstate to remove from the manager&period;
|===


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