#NEWLINE# def get_and_delete_messages( self ) : #NEWLINE# #INDENT# messages = [ ] #NEWLINE# for m in self . message_set . all ( ) : #NEWLINE# #INDENT# messages . append ( self . message ) #NEWLINE# m . delete ( ) #NEWLINE# #UNINDENT# return messages