public static void removeRepositoryContent(Set<ResourceIdentity> identities) throws IOException {
if (identities != null) {
Repository repository = ServiceLocator.getRequiredService(Repository.class);
for (ResourceIdentity resid : identities) {
repository.removeResource(resid);
}
}
}
public static void deleteDirectory(String directory) throws IOException {