def RemoveLabels(self, *labels_names, **kwargs):
    if not self.token and "owner" not in kwargs:
      raise RuntimeError("Can't remove label: No owner specified and "
                         "no access token available.")
    owner = kwargs.get("owner") or self.token.username

    current_labels = self.Get(self.Schema.LABELS)
    for label_name in labels_names:
      label = aff4_rdfvalues.AFF4ObjectLabel(name=label_name, owner=owner)
      current_labels.RemoveLabel(label)

    self.Set(self.Schema.LABELS, current_labels)
Remove specified labels from the AFF4Object.
dataset/ETHPy150Open google/grr/grr/lib/aff4.py/AFF4Object.RemoveLabels