@classmethod
    @postonly
    @multiplayer_service
    @jsonify
    def delete_session(cls):
        remote_addr = get_remote_addr(request)

        params = request.params
        try:
            session_id = params['session']
            hmac = params['hmac']
        except __HOLE__:
            response.status_int = 400
            return {'ok': False, 'msg': 'Missing session information.'}

        calculated_hmac = _calculate_session_hmac(cls.secret, remote_addr, session_id)
        if hmac != calculated_hmac:
            response.status_int = 400
            return {'ok': False, 'msg': 'Invalid server information.'}

        try:
            with cls.lock:
                del cls.sessions[session_id]
                LOG.info('Deleted empty session: %s', session_id)
        except KeyError:
            response.status_int = 404
            return {'ok': False, 'msg': 'Unknown session.'}

        return {'ok': True}
dataset/ETHPy150Open turbulenz/turbulenz_local/turbulenz_local/controllers/apiv1/multiplayer.py/MultiplayerController.delete_session