code: func restDeleteCommandById(w http.ResponseWriter, r *http.Request) {
  	vars := mux.Vars(r)
  	var id string = vars[ID]
  
  	// Check if the command exists
  	_, err := dbClient.GetCommandById(id)
  	if err != nil {
  		LoggingClient.Error(err.Error())
  		http.Error(w, err.Error(), http.StatusNotFound)
  		return
  	}
  
  	// Check if the command is still in use by a device profile
  	isStillInUse, err := isCommandStillInUse(id)
  	if err != nil {
  		LoggingClient.Error(err.Error())
  		http.Error(w, err.Error(), http.StatusInternalServerError)
  		return
  	}
  	if isStillInUse {
  		err = errors.New("Can't delete command.  Its still in use by Device Profiles")
  		LoggingClient.Error(err.Error())
  		http.Error(w, err.Error(), http.StatusConflict)
  		return
  	}
  
  	if err := dbClient.DeleteCommandById(id); err != nil {
  		LoggingClient.Error(err.Error())
  		if err == db.ErrCommandStillInUse {
  			http.Error(w, err.Error(), http.StatusConflict)
  		} else {
  			http.Error(w, err.Error(), http.StatusInternalServerError)
  		}
  		return
  	}
  	w.Header().Set("Content-Type", "application/json")
  	w.WriteHeader(http.StatusOK)
  	w.Write([]byte("true"))
  }
docs: // Delete a command by its ID