-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature request: terraform state rm option to remove all resources created with a given provider #23023
Comments
|
|
or, without locking state between each resource: terraform state list | cut -f 1 -d '[' | xargs -L 0 terraform state rm |
also worked for me:
|
On terragrunt, this worked for me
|
If using for_each with values or keys that might contain spaces, apply shell escaping for these too. The
Be careful with all of these examples, as using the output of |
If like me you're terrified of wrecking everything on accident, |
Just use
|
Hi there,
I think command "terraform rm module.${provider_name}" should remove all resources created with that provider.
Terraform v0.12.9
Use-cases
I have some helm chart created using provider helm_release
Attempted Solutions
I can delete resources if I specify full path to resource.
example
terraform rm module.helm_release.dex
Proposal
"terraform rm module.${provider_name}" should remove all resources for defined provider
The text was updated successfully, but these errors were encountered: