billions-xylophone-85957
11/18/2021, 7:48 PMpulumi state delete
?
Let's say I royally screwed up and ended up deleting some resource that has a lot of children, e.g. a k8s cluster. Now my Pulumi state is horribly broken as pulumi state delete
isn't really helpful since there are far too many dependencies to walk the tree myself from down up. In this situation it would be really great to have --yes-i-know-what-i-am-doing
flag to pulumi state delete
to force the deletes to cascade. After all, my root resource is not there anymore and the resources in the state do not correlate with the actual infrastructure objects anyway.
wdyt?little-cartoon-10569
11/18/2021, 9:26 PMpulumi state delete
commands necessary to fully clean up, so that I can manually edit it myself..microscopic-florist-22719
--target-dependents
flag for pulumi up
. That flag allows the targeted deletion of a resource and anything that depends on that resource. I think that given the similarity in behavior there’s a pretty straightforward case to make here.billions-xylophone-85957
11/19/2021, 12:16 PM