code: func (s *HTTPServer) configDelete(resp http.ResponseWriter, req *http.Request) (interface{}, error) {
  	var args structs.ConfigEntryRequest
  	s.parseDC(req, &args.Datacenter)
  	s.parseToken(req, &args.Token)
  	pathArgs := strings.SplitN(strings.TrimPrefix(req.URL.Path, "/v1/config/"), "/", 2)
  
  	if len(pathArgs) != 2 {
  		resp.WriteHeader(http.StatusNotFound)
  		fmt.Fprintf(resp, "Must provide both a kind and name to delete")
  		return nil, nil
  	}
  
  	entry, err := structs.MakeConfigEntry(pathArgs[0], pathArgs[1])
  	if err != nil {
  		resp.WriteHeader(http.StatusBadRequest)
  		fmt.Fprintf(resp, "%v", err)
  		return nil, nil
  	}
  	args.Entry = entry
  
  	var reply struct{}
  	if err := s.agent.RPC("ConfigEntry.Delete", &args, &reply); err != nil {
  		return nil, err
  	}
  
  	return reply, nil
  }
docs: // configDelete deletes the given config entry.