Sure, and an argument for IaC. When setting up DNS in Azure, I always put DNS records in same terraform for resource. So during typical teardown where it's terraform destroy, it should get destroyed as well.