code: public static void cleanupJob(Configuration configuration, JobID jobId) throws IOException {
      String exportPathRoot = BigQueryConfiguration.getTemporaryPathRoot(configuration, jobId);
      configuration.set(BigQueryConfiguration.TEMP_GCS_PATH_KEY, exportPathRoot);
      Bigquery bigquery = null;
      try {
        bigquery = new BigQueryFactory().getBigQuery(configuration);
      } catch (GeneralSecurityException gse) {
        throw new IOException("Failed to create Bigquery client", gse);
      }
      cleanupJob(new BigQueryHelper(bigquery), configuration);
    }
docs: Cleans up relevant temporary resources associated with a job which used the
  GsonBigQueryInputFormat; this should be called explicitly after the completion of the entire
  job. Possibly cleans up intermediate export tables if configured to use one due to
  specifying a BigQuery "query" for the input. Cleans up the GCS directoriy where BigQuery
  exported its files for reading.