Delete the tags pointing to an object.

def delete_tags(sender, **kwargs):
    """
    Delete the tags pointing to an object.
    """
    try:
        obj = kwargs.get('instance')
        tags = Tag.get_tags(obj)
        tags.delete()
    except AttributeError:
        pass