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

Function destroyKeyVersion

kms/destroyKeyVersion.js:49–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47 );
48
49 async function destroyKeyVersion() {
50 const [version] = await client.destroyCryptoKeyVersion({
51 name: versionName,
52 });
53
54 console.log(`Destroyed key version: ${version.name}`);
55 return version;
56 }
57
58 return destroyKeyVersion();
59 // [END kms_destroy_key_version]

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected