throws InterruptedException, RepositoryModelException, RepositoryNotFoundException {
disallowDefaultRepository(repositoryName);
try {
zk.delete(REPOSITORY_COLLECTION_PATH + "/" + repositoryName, -1);
} catch (KeeperException.NoNodeException e) {
throw new RepositoryNotFoundException("Can't delete repository, a repository with this name doesn't exist: "
+ repositoryName);
} catch (KeeperException e) {
throw new RepositoryModelException("Error deleting repository.", e);
}
}