@require_POST
def remove_tag(request):
  response = {'status': -1, 'message': _('Error')}

  try:
    DocumentTag.objects.delete_tag(request.POST['tag_id'], request.user)
    response['message'] = _('Project removed!')
    response['status'] = 0
  except __HOLE__, e:
    response['message'] = _('Form is missing %s field') % e.message
  except Exception, e:
    response['message'] = force_unicode(e)

  return JsonResponse(response)
dataset/ETHPy150Open cloudera/hue/desktop/core/src/desktop/api.py/remove_tag