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

Function deleteParam

parametermanager/deleteParam.js:37–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35 const client = new ParameterManagerClient();
36
37 async function deleteParam() {
38 // Construct the fully qualified parameter name
39 const name = client.parameterPath(projectId, 'global', parameterId);
40
41 // Delete the parameter
42 await client.deleteParameter({
43 name: name,
44 });
45
46 console.log(`Deleted parameter: ${name}`);
47 return name;
48 }
49
50 return await deleteParam();
51 // [END parametermanager_delete_param]

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected