def METHOD_NAME(self, tmpdir, _version, repo):
    repository = repo()
    repository.base_path = tmpdir
    for i in range(10):
        _version.id = f"_version_{i}"
        repository._save(_version)
    assert len(repository._load_all()) == 10
    repository._delete_all()
    assert len(repository._load_all()) == 0