Remove the chainstate and all on-disk artifacts. Used when reindex{-chainstate} is called during snapshot use.
Declared in <validation.h>
[[nodiscard, requires_capability(0x7fb95fbcb978), requires_capability(0x7fb96adf4948), requires_capability(0x7fb96eb27ac8), requires_capability(0x7fb987169258)]]
bool
DeleteChainstate(Chainstate& chainstate);
true if the chainstate and its artifacts were deleted successfully.
The return value should not be discarded.
| Name | Description |
|---|---|
| chainstate | The chainstate to remove and delete from disk. |