code: public static void removeEntries(File zip, String[] paths, OutputStream destOut) {
      if (log.isDebugEnabled()) {
        log.debug("Copying '" + zip + "' to an output stream and removing paths " + Arrays.asList(paths) + ".");
      }
  
      ZipOutputStream out = null;
      try {
        out = new ZipOutputStream(destOut);
        copyEntries(zip, out, new HashSet<String>(Arrays.asList(paths)));
      }
      finally {
        IOUtils.closeQuietly(out);
      }
    }
docs: Copies an existing ZIP file and removes entries with given paths.
  
  @param zip
  an existing ZIP file (only read)
  @param paths
  paths of the entries to remove
  @param destOut
  new ZIP destination output stream
  @since 1.14