#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# try : #NEWLINE# #INDENT# self . connection . request ( ( '/zones/%s' % zone . id ) , method = 'DELETE' ) #NEWLINE# #UNINDENT# except MalformedResponseError : #NEWLINE# #INDENT# e = sys . exc_info ( ) [ 1 ] #NEWLINE# if ( e . body == 'Not found' ) : #NEWLINE# #INDENT# raise ZoneDoesNotExistError ( driver = self , value = "The zone doesn't exists" , zone_id = zone . id ) #NEWLINE# #UNINDENT# raise e #NEWLINE# #UNINDENT# return True