'Delete a zone.
Note: This will delete all the records belonging to this zone.
:param zone: Zone to delete.
:type  zone: :class:`Zone`
:rtype: ``bool``
For more information, please see
https://www.worldwidedns.net/dns_api_protocol_delete_domain.asp
or
https://www.worldwidedns.net/dns_api_protocol_delete_domain_reseller.asp'

def delete_zone(self, zone):

    params = {'DOMAIN': zone.domain}
    action = '/api_dns_delete_domain.asp'
    if (self.reseller_id is not None):
        action = '/api_dns_delete_domain_reseller.asp'
    response = self.connection.request(action, params=params)
    return response.success()
