Destroy

View saved

Destroy managed resources

Removes everything in this root module's state.

terraform destroy

Plan a destroy

Preview first when unsure.

terraform plan -destroy

Habit for cloud labs

Create → verify → destroy. Leftover VMs and load balancers are a common surprise bill.

Targeted destroy (use sparingly)

Advanced: destroy one address. Prefer whole-stack destroy while learning.

terraform destroy -target=local_file.hello

Comments

One comment per signed-in account. Comments are saved with this page’s URL.