'Logout the Authenticated User
Deauthenticate the currently active session.'

def delete(self, request, *args, **kwargs):

    logout(request._request)
    request.user = AnonymousUser()
    return Response(status=204)
