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