code: func (s *StanServer) processDeleteChannel(channel string) {
  	cs := s.channels
  	cs.Lock()
  	defer cs.Unlock()
  	c := cs.channels[channel]
  	if c == nil {
  		s.log.Errorf("Error deleting channel %q: not found", channel)
  		return
  	}
  	if c.activity != nil && c.activity.preventDelete {
  		s.log.Errorf("The channel %q cannot be deleted at this time since a subscription has been created", channel)
  		return
  	}
  	// Delete from store
  	if err := cs.store.DeleteChannel(channel); err != nil {
  		s.log.Errorf("Error deleting channel %q: %v", channel, err)
  		if c.activity != nil {
  			c.activity.deleteInProgress = false
  			c.startDeleteTimer()
  		}
  		return
  	}
  	delete(s.channels.channels, channel)
  	s.log.Noticef("Channel %q has been deleted", channel)
  }
docs: // Actual deletetion of the channel.