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

red-scooter-62880

07/27/2022, 2:43 PM
How can I delete all resources and all state for all resources? Because deployment failed I need to delete every resource manually
g

gray-vr-25374

07/27/2022, 2:51 PM
Usually if deployment get corrupted and pulumi destroy doesn't work anymore I just delete resource group in Azure and pulumi stack. I think you can do something similar in other cloud provider.
r

red-scooter-62880

07/27/2022, 3:51 PM
@gray-vr-25374 I hoped there was a better solution without deleting the stack but just reset state of it
g

gray-vr-25374

07/27/2022, 4:00 PM
There is option to call
pulumi refresh
sometime it can help. Or you can try to manually modify your stack state
pulumi stack export --file stackState.json
, in case number of resources in your environment is small it can work.
r

red-scooter-62880

07/27/2022, 4:02 PM
thanks refresh is what I needed