code: protected void deleteConflictingResources(CmsObject cms, CmsModule module, Map<CmsUUID, CmsUUID> conflictingIds)
      throws CmsException, Exception {
  
          CmsProject conflictProject = cms.createProject(
              "Deletion of conflicting resources for " + module.getName(),
              "Deletion of conflicting resources for " + module.getName(),
              OpenCms.getDefaultUsers().getGroupAdministrators(),
              OpenCms.getDefaultUsers().getGroupAdministrators(),
              CmsProject.PROJECT_TYPE_TEMPORARY);
          CmsObject deleteCms = OpenCms.initCmsObject(cms);
          deleteCms.getRequestContext().setCurrentProject(conflictProject);
          for (CmsUUID vfsId : conflictingIds.values()) {
              CmsResource toDelete = deleteCms.readResource(vfsId, CmsResourceFilter.ALL);
              lock(deleteCms, toDelete);
              deleteCms.deleteResource(toDelete, CmsResource.DELETE_PRESERVE_SIBLINGS);
          }
          OpenCms.getPublishManager().publishProject(deleteCms);
          OpenCms.getPublishManager().waitWhileRunning();
      }
docs: Deletes and publishes resources with ID conflicts.
  
  @param cms the CMS context to use
  @param module the module
  @param conflictingIds the conflicting ids
  @throws CmsException if something goes wrong
  @throws Exception if something goes wrong