Delete DNS Record

To delete a record, use the following request:

DELETE /dns_zones/:dns_zone_id/records/:record_id.xml
DELETE /dns_zones/:dns_zone_id/records/:record_id.json

XML Request Example

*curl -i-X DELETE --url http://onapp.test/dns_zones/12/records/24.xml
-u user:userpass 

JSON Request Example

curl -X DELETE --url http://onapp.test/dns_zones/12/records/24.json -u user:userpass

You will get a 204 status response on success, and 404 if there is no DNS record with a requested ID or you entered incorrect URL.