code: public static void cleanupJob(BigQueryHelper bigQueryHelper, Configuration config)
        throws IOException {
      logger.atFine().log("cleanupJob(Bigquery, Configuration)");
  
      String gcsPath = ConfigurationUtil.getMandatoryConfig(
          config, BigQueryConfiguration.TEMP_GCS_PATH_KEY);
  
      Export export = constructExport(
          config, getExportFileFormat(config), gcsPath, bigQueryHelper, null);
  
      try {
        export.cleanupExport();
      } catch (IOException ioe) {
        // Error is swallowed as job has completed successfully and the only failure is deleting
        // temporary data.
        // This matches the FileOutputCommitter pattern.
        logger.atWarning().withCause(ioe).log(
            "Could not delete intermediate data from BigQuery export");
      }
    }
docs: Similar to {@link #cleanupJob(Configuration, JobID)}, but allows specifying the Bigquery
  instance to use.
  
  @param bigQueryHelper The Bigquery API-client helper instance to use.
  @param config The job Configuration object which contains settings such as whether sharded
  export was enabled, which GCS directory the export was performed in, etc.