Skip to content
Captain's Academy0
← Terraform sea chart
Island 3 · Core workflow · Port 3.7

terraform destroy

Ask the Captain
Instagram
One command deletes everything. But only what Terraform owns.
You'll learn to

destroy managed infrastructure, preview it with plan -destroy, and know destroy never touches unmanaged things

Recap

  1. 1destroy removes every resource in this state, dependents first
  2. 2Preview with terraform plan -destroy. Unmanaged things are never touched
  3. 3Remove one thing: delete its block and apply. Check the folder first!
Check yourself

Your account has a server that Terraform didn't create. terraform destroy...

3.7

Stamp this lesson

Watched it and passed the check? Mark it in your logbook.