https://pulumi.com logo
#general
Title
# general
r

rapid-raincoat-36492

10/11/2021, 2:34 PM
In my Pulumi console, under each project I see many stacks that have 0 resources in them (which existed for some branch deploy, but those branches no longer exist). Is there a way I can hide stacks without resources, or otherwise really destroy a stack?
Preferably I'd like to do this via the automation API or some other API, not by clicking around in the console
b

billowy-army-68599

10/11/2021, 5:16 PM
you need to do
pulumi stack rm <stackname>
or use
workspace.RemoveStack
r

rapid-raincoat-36492

10/11/2021, 5:46 PM
Perfect, thanks! I had been calling
stack.destroy
, but not
stack.workspace.removeStack
.
2 Views