#NEWLINE# def delete_zone( self , zone ) : #NEWLINE# #INDENT# '\n        Delete a zone.\n\n        Note: This will delete all the records belonging to this zone.\n\n        :param zone: Zone to delete.\n        :type  zone: :class:`Zone`\n\n        :rtype: ``bool``\n        ' #NEWLINE# action = '/app/dns/dyndns.jsp?' #NEWLINE# params = { #NEWLINE# #INDENT# 'action' : 'DELETEZONE' , #NEWLINE# 'name' : zone . id , #NEWLINE# #UNINDENT# } #NEWLINE# try : #NEWLINE# #INDENT# response = self . connection . request ( action = action , params = params ) #NEWLINE# #UNINDENT# except ZonomiException : #NEWLINE# #INDENT# e = sys . exc_info ( ) [ 1 ] #NEWLINE# if ( params . code == '404' ) : #NEWLINE# #INDENT# raise ZoneDoesNotExistError ( zone_id = zone . id , driver = self , value = e . message ) #NEWLINE# #UNINDENT# raise e #NEWLINE# #UNINDENT# return ( 'DELETED' in response . objects )