def METHOD_NAME(cli, tmpdir):
    project, workspace = open_cross_junction(cli, tmpdir)
    element = "sub.bst:data.bst"
    args = ["workspace", "close", "--remove-dir", element]
    result = cli.run(project=project, args=args)
    result.assert_success()
    assert not os.path.exists(str(workspace))
    args = ["workspace", "list"]
    result = cli.run(project=project, args=args)
    result.assert_success()
    loaded = _yaml.load_data(result.output)
    workspaces = loaded.get_sequence("workspaces")
    assert not workspaces