code: public void removeChains(List<String> chains, boolean recursive) throws Exception {
          long startTime = System.currentTimeMillis();
          Exception exception = null;
          if (cfg.exists()) {
  
              userDir = new File(System.getProperty("user.dir")).getAbsolutePath();
              System.setProperty("user.dir", options.getExecutionDirectory().getAbsolutePath());
              try {
                  ConfigurationManager manager = new ConfigurationManager(cfg, false);
                  manager.getProjectConfigurationProvider().removeChains(chains, recursive);
              } catch (Exception e) {
                  exception = e;
              } finally {
                  System.setProperty("user.dir", userDir);
                  updateMsg(startTime, exception);
              }
          }
  
      }
docs: Removes the chains from the Walkmod config file.
  
  @param chains
  Chain names to remove
  @param recursive
  If it necessary to remove the chains from all the submodules.
  @throws Exception
  If the walkmod configuration file can't be read.