'Clear recog for a given object.
Args:
obj (Object): The object for which to remove recog.'

def remove(self, obj):

    if (obj in self.obj2recog):
        del self.obj.db._recog_obj2recog[obj]
        del self.obj.db._recog_obj2regex[obj]
        del self.obj.db._recog_ref2recog[('#%i' % obj.id)]
    self._cache()
