code: public synchronized void deleteModule(CmsObject cms, String moduleName, boolean replace, I_CmsReport report)
      throws CmsRoleViolationException, CmsConfigurationException, CmsLockException {
  
          deleteModule(cms, moduleName, replace, false, report);
      }
docs: Deletes a module from the configuration.<p>
  
  @param cms must be initialized with "Admin" permissions
  @param moduleName the name of the module to delete
  @param replace indicates if the module is replaced (true) or finally deleted (false)
  @param report the report to print progress messages to
  
  @throws CmsRoleViolationException if the required module manager role permissions are not available
  @throws CmsConfigurationException if a module with this name is not available for deleting
  @throws CmsLockException if the module resources can not be locked