'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``'

def delete_zone(self, zone):

    action = '/v1/Network/DNS/Zone/delete'
    data = json.dumps({'params': {'id': zone.id}})
    try:
        response = self.connection.request(action=action, method='POST', data=data)
    except APIException:
        e = sys.exc_info()[1]
        if (e.error_class == 'LW::Exception::RecordNotFound'):
            raise ZoneDoesNotExistError(zone_id=zone.id, value=e.value, driver=self)
        else:
            raise e
    return (zone.domain in response.objects)
