Recently, I've started using workspace per env in my Terraform configuration. I ended up having three workspaces dev, staging and production. But for historical reasons my default workspace still contains obsolete tfstate.
What is the proper what to "reset" it to the default state? Like having nothing in it.
One way to achieve this is to manually execute terraform state rm
for each resource. But in this way, I would end up with hundreds of such calls. Is there some kind of terraform state reset
analogue?
terraform.tfstate
. Not sure what isdefault.tfstate
? – Handclasp