code: private void cleanup(List<File> inputFiles) {
      for (File f : inputFiles) {
        if (f.exists()) {
          if (f.delete()) {
            LOGGER.log(Level.INFO, "Deleted temporary file {0}", f.getName());
          }
        }
      }
      if (tempFolder.delete()) {
        LOGGER.log(Level.INFO, "Deleted temporary folder at {0}", tempFolder.getAbsolutePath());
      }
    }
docs: Cleanup files