MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/nodejs-docs-samples / callDeleteJob

Function callDeleteJob

batch/delete/delete_job.js:48–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46 const batchClient = new batchLib.v1.BatchServiceClient();
47
48 async function callDeleteJob() {
49 // Construct request
50 const request = {
51 name: `projects/${projectId}/locations/${region}/jobs/${jobName}`,
52 };
53
54 // Run request
55 const [operation] = await batchClient.deleteJob(request);
56 const [response] = await operation.promise();
57 console.log(response);
58 }
59
60 await callDeleteJob();
61 // [END batch_delete_job]

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected