code: func deleteDevice(d models.Device, w http.ResponseWriter, ctx context.Context) error {
  	if err := deleteAssociatedReportsForDevice(d, w); err != nil {
  		http.Error(w, err.Error(), http.StatusServiceUnavailable)
  		return err
  	}
  
  	if err := dbClient.DeleteDeviceById(d.Id); err != nil {
  		http.Error(w, err.Error(), http.StatusServiceUnavailable)
  		return err
  	}
  
  	// Notify Associates
  	if err := notifyDeviceAssociates(d, http.MethodDelete, ctx); err != nil {
  		http.Error(w, err.Error(), http.StatusServiceUnavailable)
  		return err
  	}
  
  	return nil
  }
docs: // Delete the device