code: def remove_image_info_cb(self, gshell, channel, iminfo):
          
          chname = channel.name
          if chname not in self.name_dict:
              return
  
          fileDict = self.name_dict[chname]
  
          name = iminfo.name
          if name not in fileDict:
              return
  
          del fileDict[name]
          self.logger.debug('{0} removed from ChangeHistory'.format(name))
  
          if not self.gui_up:
              return False
  
          self.clear_selected_history()
          self.recreate_toc()
docs: Delete entries related to deleted image.