def untag_samples(self, tags):
        """Removes the tag(s) from all samples in this collection, if
        necessary.

        Args:
            tags: a tag or iterable of tags
        """
        if etau.is_str(tags):
            update = {"$pull": {"tags": tags}}
        else:
            update = {"$pullAll": {"tags": list(tags)}}

        # We only need to process samples that have a tag of interest
        view = self.match_tags(tags)
        view._edit_sample_tags(update)
Removes the tag(s) from all samples in this collection, if
        necessary.

        Args:
            tags: a tag or iterable of tags
        
fiftyone/core/collections.py