How do I destroy a Cloudflare Zero Trust Tunnel created with Terraform?

Question

Grade: Education Subject: Support
How do I destroy a Cloudflare Zero Trust Tunnel created with Terraform?
Asked by:
71 Viewed 71 Answers

Answer (71)

Best Answer
(309)
To destroy a tunnel, simply remove the `cloudflare_zero_trust_tunnel` resource block from your Terraform configuration and run `terraform apply`. Terraform will automatically detect the resource to be destroyed and remove it from Cloudflare. Ensure no other resources depend on the tunnel before deleting it.