def unauth(request):
    if check_key(request):
        api = get_api(request)
        request.session.clear()
        logout(request)
    return HttpResponseRedirect(reverse('main'))
logout and remove all session data
dataset/ETHPy150Open marcelcaraciolo/foursquare/examples/django/example/djfoursquare/views.py/unauth