- Home
- Origin Server
- Teardown
Teardown
When the lab session is complete, destroy all Azure resources to stop billing.
Terraform Destroy
Section titled “Terraform Destroy”From the directory containing the Terraform configuration:
terraform plan -destroy
terraform destroyTerraform will prompt for confirmation. Type yes to proceed.
Verify Cleanup
Section titled “Verify Cleanup”Confirm all resources have been removed:
az group show --name "$(terraform output -raw resource_group_name)" 2>&1 \ | grep -q "ResourceGroupNotFound" \ && echo "Resource group deleted" \ || echo "Resource group still exists"Clean Up Local State
Section titled “Clean Up Local State”Remove Terraform state and cached files:
rm -rf .terraform .terraform.lock.hcl terraform.tfstate terraform.tfstate.backupF5 XC Cleanup
Section titled “F5 XC Cleanup”If you created F5 XC resources pointing to this origin server, remove them:
- Delete the HTTP load balancer
- Delete the origin pool
- Delete any WAF policies created for testing