private void installDeletePackage()

in src/main/java/org/apache/sling/distribution/journal/shared/JournalDistributionPackageBuilder.java [181:196]


    private void installDeletePackage(@Nonnull ResourceResolver resourceResolver,
                                      @Nonnull DistributionPackage distributionPackage)
            throws DistributionException {
        List<String> paths = asList(distributionPackage.getInfo().getPaths());
        LOG.info("Deleting paths {}", paths);
        for (String path : paths) {
            Resource resource = resourceResolver.getResource(path);
            if (resource != null) {
                try {
                    resourceResolver.delete(resource);
                } catch (PersistenceException e) {
                    throw new DistributionException(e);
                }
            }
        }
    }