Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Windows batch script to cleanup a Terraform project
IF exist .terraform (rd /s /q .terraform)
IF exist terraform.tfstate.d (rd /s /q terraform.tfstate.d)
IF exist .terraform.lock.hcl (del .terraform.lock.hcl)
IF exist terraform.tfstate (del terraform.tfstate)
IF exist terraform.tfstate.backup (del terraform.tfstate.backup)

This comment has been minimized.

Copy link
Owner Author

@jhanley-com jhanley-com commented Mar 7, 2021

This script is used in my article about Terraform, Google Cloud DNS and Cloud IAM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment