def delete_thumbnails(self, image_file):
thumbnail_keys = self._get(image_file.key, identity='<STR_LIT>')<EOL>if thumbnail_keys:<EOL><INDENT>for key in thumbnail_keys:<EOL><INDENT>thumbnail = self._get(key)<EOL>if thumbnail:<EOL><INDENT>self.delete(thumbnail, False)<EOL>thumbnail.delete()  <EOL><DEDENT><DEDENT>self._delete(image_file.key, identity='<STR_LIT>')<EOL><DEDENT>
Deletes references to thumbnails as well as thumbnail ``image_files``.