[#BloombergLP-ball-CategoryManager-removeRule]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/CategoryManager.adoc[CategoryManager]::removeRule
:relfileprefix: ../../../
:mrdocs:

Remove the specified `ruleToRemove` from the set of (unique) rules maintained by this object&period; Return the number of rules removed (i&period;e&period;, 1 on success and 0 if no rule having the same value is found)&period; The behavior is undefined unless a lock is not held by this thread on the mutex returned by `rulesetMutex`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
removeRule(xref:BloombergLP/ball/Rule.adoc[Rule] const& ruleToRemove);
----


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