internal void RemoveRepository(IRepository repository) { _repositories.Remove(repository); _repositoryConfigurations.Remove(repository); var repositoryStorageDirectory = ApplicationPath.GetRepositoryDirectory(repository); try { Directory.Delete(repositoryStorageDirectory, true); } catch (Exception ex) { this.LogError("failed to remove repository directory '{0}': {1}", repositoryStorageDirectory, ex.Message); } }