#NEWLINE# def remove_all( self ) : #NEWLINE# #INDENT# items = [ self . topLevelItem ( self ) for i in xrange ( self . topLevelItemCount ( ) ) ] #NEWLINE# for item in items : #NEWLINE# #INDENT# self . collection . del_from_workspace ( item . entity ) #NEWLINE# #UNINDENT# self . collection . commit ( )