I everybody! I have a simple question: I run a pul...
# getting-started
g
I everybody! I have a simple question: I run a pulumi up with tho big charts: the cli is running for more than half an hour now and I would like to do something like a pulumi destroy. I tried logging in with another client and it says I should delete the lock. Is there an easier/faster way to proceed in such cases?
b
what is big charts?
you can remove the lock with
pulumi cancel
g
Is it safe to run pulumi cancel and then pulumi destroy?
b
@gray-state-1017 yes that should be safe, I replied on your stackoverflow questions as well in more depth
g
I did not quite get what is the overall sequence of commands you would suggest. I already tried a ctr+c once and it left all the resources spread in the cluster which I would like to avoid. What is your suggestion?
b
ctrl+c will simply stop the operation. you'll need to run
pulumi destroy
after that
are you saying you'd like to interrupt the running process and have it automatically clean up after you?
g
yes
b
that isn't possible, and I'm not aware of any tool that can do that. You could possibly achieve it by creating your own solution with Automation API
g
Ok, and what is that goes nearest to that? ctrl+c and pulumi destroy? or pulumi cancel?
b
ctrl+c and pulumi destroy is pretty much the same as pulumi cancel and pulumi destroy
1
g
thank you very much for your help!
b
my pleasure! let us know any of other ways we can help
g
btw the pulumi cancel does not destroy the lock
If you think I could get my question better on stack overflow, I would be happy to help other people too
b
are you running it from the same directory as your program?
g
yes
b
what does it return?
g
Copy code
error: the stack is currently locked by 1 lock(s). Either wait for the other process(es) to end or manually delete the lock file(s).
b
oh, you're using the the open source backend. in that case you'll need to manually remove it from your S3 bucket, it's managed by the bucket itself