code: protected void cleanup(JobContext context) throws IOException {
      boolean delete =
          BigQueryOutputConfiguration.getCleanupTemporaryDataFlag(context.getConfiguration());
  
      if (delete && outputFileSystem.exists(outputPath)) {
        logger.atInfo().log("Found GCS output data at '%s', attempting to clean up.", outputPath);
        if (outputFileSystem.delete(outputPath, true)) {
          logger.atInfo().log("Successfully deleted GCS output path '%s'.", outputPath);
        } else {
          logger.atWarning().log(
              "Failed to delete GCS output at '%s', retrying on shutdown.", outputPath);
          outputFileSystem.deleteOnExit(outputPath);
        }
      }
    }
docs: Attempts to manually delete data in the output path. If this fails, another delete attempt is
  made on JVM shutdown.
  
  @param context the job content to cleanup.
  @throws IOException if a FileSystem exception is encountered.