

def remove(self, key, category=None):
    '\n        Remove a tag from the handler based ond key and category.\n\n        Args:\n            key (str or list): The tag or tags to retrieve.\n            category (str, optional): The Tag category to limit the\n                request to. Note that `None` is the valid, default\n                category.\n\n        '
    for key in make_iter(key):
        if (not (key or key.strip())):
            continue
        tagstr = key.strip().lower()
        category = (category.strip().lower() if (category is not None) else None)
        tagobj = self.obj.db_tags.filter(db_key=tagstr, db_category=category)
        if tagobj:
            getattr(self.obj, tagobj._m2m_fieldname).remove(tagobj[0])
    self._recache()

dataset/ETHPy150Open evennia/evennia/evennia/typeclasses/tags.py TagHandler.remove/VarMisuse@112/236 `self`->`tagobj`