code: public synchronized void cleanup(boolean deleteTemporary) {
          if (deleteTemporary && tempDirectory != null && tempDirectory.exists()) {
              LOGGER.debug("Deleting ALL temporary files from `{}`", tempDirectory.toString());
              FileUtils.delete(tempDirectory);
              tempDirectory = null;
          }
      }
docs: Cleans up resources to prevent memory leaks.
  
  @param deleteTemporary flag indicating whether any temporary directories
  generated should be removed