[#BloombergLP-ball-RuleSet-removeRuleById]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/RuleSet.adoc[RuleSet]::removeRuleById
:relfileprefix: ../../../
:mrdocs:

Remove from this rule set the rule having the specified `id`&period; Return the number of rules removed (i&period;e&period;, 1 on success and 0 if there is no rule whose id is `id`)&period; The behavior is undefined unless `0 &lt;&equals; id &lt; e&lowbar;MAX&lowbar;NUM&lowbar;RULES`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
removeRuleById(int id);
----


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