Hi guys, is there any way to delete a stack itself...
# automation-api
a
Hi guys, is there any way to delete a stack itself via automation API? Something equivalent to
pulumi stack rm
?
m
Here's what I do:
Copy code
public destroyStack = async (stackName: string): Promise<any> => {
    const stack = await this.selectStack(stackName);
    const response = await stack.destroy({ onOutput: <http://console.info|console.info> });
    await stack.workspace.removeStack(stack.name);
    return response;
  }
a
Thank you!, it works 👌
🙌 1
👍 1
c
Thank you @millions-furniture-75402
👍 1