In my Pulumi console, under each project I see man...
# general
r
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
you need to do
pulumi stack rm <stackname>
or use
workspace.RemoveStack
r
Perfect, thanks! I had been calling
stack.destroy
, but not
stack.workspace.removeStack
.