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

Function callDeleteTpuVM

tpu/deleteVM.js:39–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 const zone = 'europe-west4-a';
38
39 async function callDeleteTpuVM() {
40 const request = {
41 name: `projects/${projectId}/locations/${zone}/nodes/${nodeName}`,
42 };
43
44 const [operation] = await tpuClient.deleteNode(request);
45
46 // Wait for the delete operation to complete.
47 const [response] = await operation.promise();
48
49 console.log(`Node: ${nodeName} deleted.`);
50 return response;
51 }
52
53 return await callDeleteTpuVM();
54 // [END tpu_vm_delete]

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected