code: def remove(self, parent):
          
          if parent not in self._aggregates:
              raise ValueError("Sensor %r does not have an aggregate rule "
                               "associated" % parent)
          children = self.children(parent)
          try:
              self.remove_links(parent, children)
          except Exception:
              pass
          del self._aggregates[parent]
docs: Remove an aggregation rule.
  
          Parameters
          ----------
          parent : :class:`katcp.Sensor` object
              The aggregate sensor to remove.