[#BloombergLP-ball-CategoryManager_RadixTree-erasePrefix]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/CategoryManager_RadixTree.adoc[CategoryManager&lowbar;RadixTree]::erasePrefix
:relfileprefix: ../../../
:mrdocs:

Remove all entries with keys that have the specified `prefix`&period;

== Synopsis

Declared in `&lt;ball&lowbar;categorymanager&lowbar;radixtree&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/CategoryManager_RadixTree/size_type.adoc[CategoryManager&lowbar;RadixTree&lt;t&lowbar;VALUE&gt;::size&lowbar;type]
erasePrefix(std::string&lowbar;view const& prefix);
----

== Description

Include the entry for the `prefix` itself if it exists&period; Return the number of entries removed&period; Note that this method removes all nodes whose keys start with `prefix`, not just those that have a value&period;

== Return Value

number of entries removed

== Parameters

[cols="1,4"]
|===
| Name| Description
| *prefix*
| key prefix of entries to remove
|===


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