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

Remove all children of the entry matching 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]
eraseChildrenOfPrefix(std::string&lowbar;view const& prefix);
----

== Description

Do not remove the entry with the prefix itself&period; If unused (no value, no children) nodes remain remove those, too&period; If no entry exists for `prefix` remove nothing&period; Return the number of entries removed&period;

== Return Value

number of entries removed

== Parameters

[cols="1,4"]
|===
| Name| Description
| *prefix*
| key of the entry whose children are removed
|===


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