code: func (h *apiExecutor) HistoryRemove(ctx context.Context, cmd *HistoryRemoveRequest) *HistoryRemoveResponse {
  	defer func(started time.Time) {
  		apiCommandDurationSummary.WithLabelValues(h.protocol, "history_remove").Observe(time.Since(started).Seconds())
  	}(time.Now())
  
  	resp := &HistoryRemoveResponse{}
  
  	ch := cmd.Channel
  
  	if ch == "" {
  		resp.Error = ErrorBadRequest
  		return resp
  	}
  
  	chOpts, ok := h.node.ChannelOpts(ch)
  	if !ok {
  		resp.Error = ErrorNamespaceNotFound
  		return resp
  	}
  
  	if chOpts.HistorySize <= 0 || chOpts.HistoryLifetime <= 0 {
  		resp.Error = ErrorNotAvailable
  		return resp
  	}
  
  	err := h.node.RemoveHistory(ch)
  	if err != nil {
  		h.node.Log(centrifuge.NewLogEntry(centrifuge.LogLevelError, "error calling history remove", map[string]interface{}{"error": err.Error()}))
  		resp.Error = ErrorInternal
  		return resp
  	}
  
  	return resp
  }
docs: // HistoryRemove removes all history information for channel.