#NEWLINE# def ex_delete_all_records( self , zone ) : #NEWLINE# #INDENT# '\n        Remove all the records for the provided zone.\n\n        :param zone: Zone to delete records for.\n        :type  zone: :class:`Zone`\n        ' #NEWLINE# deletions = [ ] #NEWLINE# for r in zone . list_records ( ) : #NEWLINE# #INDENT# if ( r . type in ( RecordType . NS , RecordType . SOA ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# deletions . append ( ( 'DELETE' , r . name , r . type , r . data , r . extra ) ) #NEWLINE# #UNINDENT# if deletions : #NEWLINE# #INDENT# self . _post_changeset ( zone , deletions )