in src/main/java/org/apache/sling/resource/collection/impl/ResourceCollectionManagerImpl.java [122:130]
public boolean deleteCollection(Resource resource) throws PersistenceException {
if (resource != null) {
log.debug("collection {} deleted", resource.getPath());
resource.getResourceResolver().delete(resource);
return true;
} else {
throw new IllegalArgumentException("resource can not be null");
}
}