Loading...

Knowledge Base

Delete a CNAME Record via API

When you want to remove a CNAME record from a domain using the API. This article explains the required parameters, API request format, and response details for deleting CNAME records.

Deleting CNAME record

 

Description

Deletes a Canonical (CNAME) record.

Parameters

NameData TypeRequired / OptionalDescription
auth-useridIntegerRequiredour Live Account Reseller Id
api-keyStringRequiredAn alphanumeric code that can be used to authenticate your API calls
domain-nameStringRequiredDomain name for which you want to delete a CNAME record
hostStringRequiredHostname of the record to be deleted
valueStringRequiredA Fully Qualified Domain Name (FQDN)

HTTP Method

POST

Example Test URL Request

https://test.httpapi.com/api/dns/manage/delete-cname-record.json?auth-userid=0&api-key=key&domain-name=domain.com&host=webmail&value=webmail.domain.com

Response

Returns Success as the status of the response if the record is deleted successfully or record does not exist.

In case of any error, an error key with error description (as value) will be returned.

 
 

Loading...