How to Delete a Domain 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.

Follow this guide to delete a domain from Vultr DNS using the Vultr Customer Portal, API, CLI, or Terraform.

Vultr Customer Portal

  1. Navigate to Products, expand the Network group and click DNS to view all domains in your account.
  2. Click Delete Domain next to your target domain.
  3. Click Delete Domain in the confirmation prompt to delete the target domain.

Vultr API

  1. 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}"
    
  2. 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

  1. List all domains available in your Vultr account and note the target domain.
    console
    $ vultr-cli dns domain list
    
  2. Delete the domain.
    console
    $ vultr-cli dns domain delete <domain>

Terraform

  1. Open your Terraform configuration where the domain is defined.
  2. Remove the vultr_dns_domain resource block, or destroy it by target.
    terraform
    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
    
  3. 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.…

Leave a Reply

Your email address will not be published. Required fields are marked *