# Delete DNS zone This function deletes a DNS zone. - The WHM API 1 adddns function adds an XDNS entry for a domain in the following locations: - The file, where represents the domain's owner. - The directory, where represents the new zone's domain. - The directory, where represents the new zone's domain. - This function does automatically delete these entries. You manually delete these entries, or you use this domain as a value in other API functions. - You cannot delete other DNS zones that reside on servers in a DNS cluster. When you disable the DNS role, the system this function. You use this function to delete temporary domains. Endpoint: GET /killdns Version: 11.134.0.5 Security: BasicAuth ## Query parameters: - `domain` (string, required) The zone record's domain. Example: "example.com" ## Response 200 fields (application/json): - `metadata` (object) - `metadata.command` (string) The method name called. Example: "killdns" - `metadata.output` (object) - `metadata.output.raw` (string) The raw response output. Example: "example.com => deleted from example." - `metadata.reason` (string) The reason the API function failed when the field is . This field may display a success message when a function succeeds. Example: "Zones Removed" - `metadata.result` (integer) * - Success. * - Failed. Check the field for more details. Enum: 0, 1 - `metadata.version` (integer) The version of the API function. Example: 1