#NEWLINE# def delete( self , save = True ) : #NEWLINE# #INDENT# name = self . name #NEWLINE# super ( ImageWithThumbsFieldFile , self ) . delete ( save ) #NEWLINE# if self . field . sizes : #NEWLINE# #INDENT# for size in self . field . sizes : #NEWLINE# #INDENT# ( w , h ) = size #NEWLINE# split = name . rsplit ( '.' , 1 ) #NEWLINE# thumb_name = ( '%s.%sx%s.%s' % ( split [ 0 ] , w , h , split [ 1 ] ) ) #NEWLINE# try : #NEWLINE# #INDENT# self . storage . delete ( thumb_name ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# pass