code: func (h *Handler) handleDeleteField(w http.ResponseWriter, r *http.Request) {
  	if !validHeaderAcceptJSON(r.Header) {
  		http.Error(w, "JSON only acceptable response", http.StatusNotAcceptable)
  		return
  	}
  
  	indexName := mux.Vars(r)["index"]
  	fieldName := mux.Vars(r)["field"]
  
  	resp := successResponse{h: h}
  	err := h.api.DeleteField(r.Context(), indexName, fieldName)
  	resp.write(w, err)
  }
docs: // handleDeleteField handles DELETE /field request.