#NEWLINE# def delete_thumbnails( self , image_file ) : #NEWLINE# #INDENT# '\n        Deletes references to thumbnails as well as thumbnail ``image_files``.\n        ' #NEWLINE# thumbnail_keys = self . _get ( image_file . key , identity = 'thumbnails' ) #NEWLINE# if thumbnail_keys : #NEWLINE# #INDENT# for key in thumbnail_keys : #NEWLINE# #INDENT# thumbnail = self . _get ( key ) #NEWLINE# if thumbnail : #NEWLINE# #INDENT# self . delete ( thumbnail , False ) #NEWLINE# thumbnail . delete ( ) #NEWLINE# #UNINDENT# #UNINDENT# self . _delete ( image_file . key , identity = 'thumbnails' )