Skip to content

Instantly share code, notes, and snippets.

@jhanley-com
Created March 7, 2021 22:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhanley-com/3080e82e124406621a8b30018825c632 to your computer and use it in GitHub Desktop.
Save jhanley-com/3080e82e124406621a8b30018825c632 to your computer and use it in GitHub Desktop.
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)
@jhanley-com
Copy link
Author

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

https://www.jhanley.com/terraform-experiments-with-google-cloud-dns-and-iam/

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