code: func (n *NetworkServerAPI) DeleteDevice(ctx context.Context, req *ns.DeleteDeviceRequest) (*empty.Empty, error) {
  	var devEUI lorawan.EUI64
  	copy(devEUI[:], req.DevEui)
  
  	err := storage.Transaction(func(tx sqlx.Ext) error {
  		if err := storage.DeleteDevice(tx, devEUI); err != nil {
  			return errToRPCError(err)
  		}
  
  		if err := storage.DeleteDeviceSession(storage.RedisPool(), devEUI); err != nil && err != storage.ErrDoesNotExist {
  			return errToRPCError(err)
  		}
  
  		return nil
  	})
  	if err != nil {
  		return nil, err
  	}
  
  	return &empty.Empty{}, nil
  }
docs: // DeleteDevice deletes the device matching the given DevEUI.