code: func eventByAgeHandler(w http.ResponseWriter, r *http.Request) {
  	defer r.Body.Close()
  
  	vars := mux.Vars(r)
  	age, err := strconv.ParseInt(vars["age"], 10, 64)
  
  	if err != nil {
  		http.Error(w, err.Error(), http.StatusBadRequest)
  		LoggingClient.Error("Error converting the age to an integer")
  		return
  	}
  
  	LoggingClient.Info("Deleting events by age: " + vars["age"])
  
  	count, err := deleteEventsByAge(age)
  	if err != nil {
  		LoggingClient.Error(err.Error())
  		http.Error(w, err.Error(), http.StatusInternalServerError)
  		return
  	}
  
  	w.Header().Set("Content-Type", "application/json")
  	w.WriteHeader(http.StatusOK)
  	w.Write([]byte(strconv.Itoa(count)))
  }
docs: // Remove all the old events and associated readings (by age)
  // event/removeold/age/{age}