code: protected void removeModule(String moduleName, I_CmsReport report) throws CmsException {
  
          if (OpenCms.getModuleManager().getModule(moduleName) != null) {
              OpenCms.getModuleManager().deleteModule(
                  m_cms,
                  moduleName,
                  true,
                  m_preserveLibModules.contains(moduleName),
                  report);
          }
      }
docs: Removes a module.<p>
  
  @param moduleName the name of the module to remove
  @param report the report to write to
  
  @throws CmsException in case something goes wrong