Skip to content

Instantly share code, notes, and snippets.

@mr-pascal
Created May 1, 2021 07:02
Show Gist options
  • Select an option

  • Save mr-pascal/a3ea1ead3b4e82043faf8cf6a3f1dd44 to your computer and use it in GitHub Desktop.

Select an option

Save mr-pascal/a3ea1ead3b4e82043faf8cf6a3f1dd44 to your computer and use it in GitHub Desktop.
/**
* Delete the instance provided by the instanceId
* @param {string} instanceId
*/
const deleteInstance = async (instanceId) => {
const instance = bigtable.instance(instanceId);
console.log('Deleting Instance');
await instance.delete();
console.log(`Instance deleted: '${instance.id}'`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment