code: func deleteAssociatedReportsForDevice(d models.Device, w http.ResponseWriter) error {
  	reports, err := dbClient.GetDeviceReportByDeviceName(d.Name)
  	if err != nil {
  		http.Error(w, err.Error(), http.StatusServiceUnavailable)
  		LoggingClient.Error(err.Error())
  		return err
  	}
  
  	// Delete the associated reports
  	for _, report := range reports {
  		if err := dbClient.DeleteDeviceReportById(report.Id); err != nil {
  			http.Error(w, err.Error(), http.StatusServiceUnavailable)
  			LoggingClient.Error(err.Error())
  			return err
  		}
  		notifyDeviceReportAssociates(report, http.MethodDelete)
  	}
  
  	return nil
  }
docs: // Delete the associated device reports for the device