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

wonderful-dog-9045

05/18/2020, 8:14 PM
refusing to delete protected resource
, how can i override it or remove the protection? I am trying to do
pulumi destroy
because
pulumi up
is failing to update the vpc, due to another error.
b

best-lifeguard-91445

05/18/2020, 8:18 PM
can you do
pulumi state unprotect
or
pulumi state  delete --force
g

gentle-diamond-70147

05/18/2020, 8:18 PM
pulumi state unprotect
is your best option here. https://www.pulumi.com/docs/reference/cli/pulumi_state_unprotect/
w

wonderful-dog-9045

05/18/2020, 8:20 PM
cool, thanks!
pulumi state unprotect
was exactly what I was looking for, but didnt expect it be hidden under
pulumi state
. But now in hindsight it makes sense that way.
Would be cool if the error message mentioned that command.
b

broad-dog-22463

05/18/2020, 8:36 PM
@wonderful-dog-9045 can you open an issue for this?
We should make that clear in the error message
w

wonderful-dog-9045

05/18/2020, 8:36 PM
yup, will do 🙂
b

broad-dog-22463

05/18/2020, 9:20 PM
thanks!