def delete_space(deployment_name,
                 space_name,
                 token_manager=None,
                 app_url=defaults.APP_URL):

    deployment_id = get_deployment_id(deployment_name,
                                      token_manager=token_manager,
                                      app_url=app_url)

    space_id = get_space_id(deployment_name,
                            space_name,
                            token_manager=token_manager,
                            app_url=app_url)

    headers = token_manager.get_access_token_headers()
    deployment_url = environment.get_deployment_url(app_url=app_url)
    response = requests.delete('%s/api/v1/deployments/%s/spaces/%s' %
                               (deployment_url, deployment_id, space_id),
                               headers=headers)

    if response.status_code == 204:
        return response.text
    else:
        raise JutException((response.status_code, response.text) % 'Error %s: %s')
dataset/ETHPy150Open jut-io/jut-python-tools/jut/api/deployments.py/delete_space/swapped operands of `%`