Step 4: Tear Down
One of the most important habits in DevOps is cleaning up after yourself. In the cloud, forgotten resources cost money.
Run: bash tofu destroy
Type yes. OpenTofu will delete the file pet.txt.
Discipline Note
In this course, we will adopt the discipline of destroying everything at the end of the day. This ensures our code is perfectly reproducible. If you can't rebuild it from scratch, your code is broken.