Learn how to permanently remove a domain from your Vultr DNS management system.
Deleting a domain removes it and all existing DNS records such as zones from Vultr DNS. DNS records cannot be recovered when a domain is deleted from Vultr DNS.
Follow this guide to delete a domain from Vultr DNS using the Vultr Customer Portal, API, CLI, or Terraform.
Send a GET
request to the List DNS domains endpoint and note the target domain in your output.
$ curl "https://api.vultr.com/v2/domains" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a DELETE
request to the Delete Domain endpoint to delete the domain.
$ curl "https://api.vultr.com/v2/domains/{dns-domain}" \
-X DELETE \
-H "Authorization: Bearer ${VULTR_API_KEY}"
List all domains available in your Vultr account and note the target domain.
$ vultr-cli dns domain list
Delete the domain.
$ vultr-cli dns domain delete <domain>
Open your Terraform configuration where the domain is defined.
Remove the vultr_dns_domain
resource block, or destroy it by target.
resource "vultr_dns_domain" "example" {
domain = "example.com"
}
# To delete, either remove this block from configuration
# or run: terraform destroy -target vultr_dns_domain.example
Apply the configuration and observe the following output:
Apply complete! Resources: 0 added, 0 changed, 1 destroyed.
No comments yet.