docs: protected void processDeletions(CmsObject cms, List<CmsResource> toDelete) throws CmsException {
  
          Collections.sort(toDelete, (a, b) -> b.getRootPath().compareTo(a.getRootPath()));
          for (CmsResource deleteRes : toDelete) {
              m_report.print(
                  org.opencms.importexport.Messages.get().container(org.opencms.importexport.Messages.RPT_DELFOLDER_0),
                  I_CmsReport.FORMAT_NOTE);
              m_report.print(
                  org.opencms.report.Messages.get().container(
                      org.opencms.report.Messages.RPT_ARGUMENT_1,
                      deleteRes.getRootPath()));
              CmsLock lock = cms.getLock(deleteRes);
              if (lock.isUnlocked()) {
                  lock(cms, deleteRes);
              }
              cms.deleteResource(deleteRes, CmsResource.DELETE_PRESERVE_SIBLINGS);
              m_report.println(
                  org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_OK_0),
                  I_CmsReport.FORMAT_OK);
  
          }
      }