-
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
Terraform state rm - deletes everything #16240
Comments
Thanks for filing the issue. This is fixed in current releases by #15479. |
How to remove all ? |
@alwaysastudent: |
@padamczewski
I'm on terraform 0.12.6 by the way. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Terraform Version
0.9.11
Expected Behavior
I wouldn't have imagined that
terraform state rm
without arguments would delete all of the resources in theterraform.tfstate
file. I think this should be treated as an erroneous command by the user.Actual Behavior
TF removed all of the resource in the
terraform.tfstate
file.If remote state is configured, it'll also sync the now bare tfstate up to the remote location.
Steps to Reproduce
terraform state rm
The text was updated successfully, but these errors were encountered: