public static class ResourceUtil.BatchResourceRemover
A batch resource remover deletes resources in batches. Once the batch
size (threshold) is reached, an intermediate commit is performed. Resource
trees are deleted resource by resource starting with the deepest children first.
Once all resources have been passed to the batch resource remover, a final
commit needs to be called on the resource resolver.