[#wallet-DatabaseBatch-ErasePrefix] = xref:wallet.adoc[wallet]::xref:wallet/DatabaseBatch.adoc[DatabaseBatch]::ErasePrefix :relfileprefix: ../../ :mrdocs: Erases all records whose key begins with the given prefix. == Synopsis Declared in `<wallet/db.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool ErasePrefix(std::span<std::byte const> prefix) = 0; ---- == Return Value true if the matching records were erased. == Parameters [cols="1,4"] |=== | Name| Description | *prefix* | The key prefix to match. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#