def authinfo_del(request):
    authinfo_id = request.GET.get('id', '')
    if authinfo_id:
        AuthInfo.objects.filter(id=authinfo_id).delete()
    authinfo_id_all = str(request.POST.get('authinfo_id_all', ''))
    if authinfo_id_all:
        for authinfo_id in authinfo_id_all.split(','):
            AuthInfo.objects.filter(id=authinfo_id).delete()
    return HttpResponseRedirect(reverse('authinfo_list'))