code: func (h *Handler) serveDeleteInstance(w http.ResponseWriter, r *http.Request, params httprouter.Params) {
  	// Retrieve path parameters.
  	service := params.ByName("service")
  	instanceID := params.ByName("instance_id")
  
  	// Remove instance from the store.
  	if err := h.Store.RemoveInstance(service, instanceID); err == ErrNotLeader {
  		h.redirectToLeader(w, r)
  		return
  	} else if IsNotFound(err) {
  		hh.ObjectNotFoundError(w, err.Error())
  		return
  	} else if err != nil {
  		hh.Error(w, err)
  		return
  	}
  }
docs: // serveDeleteInstance removes an instance from the store by name.