code: def delete_channel_cb(self, gshell, chinfo):
          
          chname = chinfo.name
  
          if chname not in self.name_dict:
              return
  
          del self.name_dict[chname]
          self.logger.debug('{0} removed from ChangeHistory'.format(chname))
  
          if not self.gui_up:
              return False
  
          self.clear_selected_history()
          self.recreate_toc()
docs: Called when a channel is deleted from the main interface.
          Parameter is chinfo (a bunch).