[#ChainstateManager-DeleteChainstate] = xref:ChainstateManager.adoc[ChainstateManager]::DeleteChainstate :relfileprefix: ../ :mrdocs: Remove the chainstate and all on‐disk artifacts. Used when reindex{‐chainstate} is called during snapshot use. == Synopsis Declared in `<validation.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard, requires_capability(0x7f2e1bc17fd8), requires_capability(0x7f2e146b6328), requires_capability(0x7f2e298fb6f8), requires_capability(0x7f2e360b8e58)]] bool DeleteChainstate(xref:Chainstate.adoc[Chainstate]& chainstate); ---- == Return Value true if the chainstate and its artifacts were deleted successfully. [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *chainstate* | The chainstate to remove and delete from disk. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#