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

early-musician-41645

11/21/2018, 6:35 PM
I've done the following and not sure how to fix it: 1) Created a project 2) Created a stack 3) Deleted the project code in an unrecoverable way 4) Can't figure out how to delete the stack Any pointers? Is there a console way to delete it?
i

incalculable-sundown-82514

11/21/2018, 6:37 PM
I believe this works:
Copy code
pulumi stack select <your stack>
pulumi config refresh
pulumi destroy
pulumi stack rm
let me try it too
m

microscopic-florist-22719

11/21/2018, 6:37 PM
You may need to be in a directory with a
Pulumi.yaml
file
e

early-musician-41645

11/21/2018, 6:39 PM
What would the yaml look like?
n/m grabbed a neighboring yaml
i

incalculable-sundown-82514

11/21/2018, 6:40 PM
cool - the commands I posted just worked for me with a Pulumi.yaml in the directory
there is a console way to delete a stack, I believe, but it’s a little dangerous in that it doesn’t delete any active resources in the stack. This method deletes all resources and then the stack itself
e

early-musician-41645

11/21/2018, 6:42 PM
The
pulumi stack select
is hanging. Is it expected to take longer than 1 min?
i

incalculable-sundown-82514

11/21/2018, 6:45 PM
hmm, no, I’d expect it to be quite fast.
is it still stuck?
e

early-musician-41645

11/21/2018, 7:35 PM
Had a network issue right then, worked later on. thanks!