<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def remove_rule(self, name):
 """ Remove a rule from attributes. Arguments: name (string):
 Rule name to remove. """

        self._rule_attrs.remove(name)
        delattr(self, name)