How to Delete a Domain from Vultr DNS
-
by Blog Admin
- 15
How to Delete a Domain from Vultr DN
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.
Vultr Customer Portal
- Navigate to Products, expand the Network group and click DNS to view all domains in your account.
- Click Delete Domain next to your target domain.
- Click Delete Domain in the confirmation prompt to delete the target domain.
Vultr API
- Send a
GET
request to the List DNS domains endpoint and note the target domain in your output.console$ 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.console$ curl "https://api.vultr.com/v2/domains/{dns-domain}" \ -X DELETE \ -H "Authorization: Bearer ${VULTR_API_KEY}"
Vultr CLI
- List all domains available in your Vultr account and note the target domain.
console
$ vultr-cli dns domain list
- Delete the domain.
console
$ vultr-cli dns domain delete <domain>
Terraform
- Open your Terraform configuration where the domain is defined.
- Remove the
vultr_dns_domain
resource block, or destroy it by target.terraformresource "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.
How to Delete a Domain from Vultr DN 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.…
How to Delete a Domain from Vultr DN 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.…