[#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. Return the number of rules removed (i.e., 1 on success and 0 if no rule having the same value is found). The behavior is undefined unless a lock is not held by this thread on the mutex returned by `rulesetMutex`. == Synopsis Declared in `<ball_categorymanager.h>` [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]#