async function main(projectId, region, jobName) {
  // [START batch_delete_job]
  /**
   * TODO(developer): Uncomment and replace these variables before running the sample.
   */
  // const projectId = 'YOUR_PROJECT_ID';
  /**
   * The region that hosts the job.
   */
  // const region = 'us-central-1';
  /**
   * The name of the job you want to delete.
   */
  // const jobName = 'YOUR_JOB_NAME';

  // Imports the Batch library
  const batchLib = require('@google-cloud/batch');

  // Instantiates a client
  const batchClient = new batchLib.v1.BatchServiceClient();

  async function callDeleteJob() {
    // Construct request
    const request = {
      name: `projects/${projectId}/locations/${region}/jobs/${jobName}`,
    };

    // Run request
    const [operation] = await batchClient.deleteJob(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  await callDeleteJob();
  // [END batch_delete_job]
}
Deletes the specified job.

@param {string} projectId - ID or number of the Google Cloud project you want to use.
@param {string} region - The Google Cloud region to use, e.g. 'us-central1'
@param {string} jobName - ID used to uniquely identify the Job within this project and region.
 This field should contain at most 63 characters.
 Only alphanumeric characters or '-' are accepted.
 The '-' character cannot be the first or the last one.