code: func DeleteDevice(db sqlx.Execer, devEUI lorawan.EUI64) error {
  	res, err := db.Exec("delete from device where dev_eui = $1", devEUI[:])
  	if err != nil {
  		return handlePSQLError(err, "delete error")
  	}
  
  	ra, err := res.RowsAffected()
  	if err != nil {
  		return handlePSQLError(err, "get rows affected error")
  	}
  	if ra == 0 {
  		return ErrDoesNotExist
  	}
  
  	log.WithField("dev_eui", devEUI).Info("node deleted")
  	return nil
  }
docs: // DeleteDevice deletes the device matching the given DevEUI.