code: func (n *NetworkServerAPI) DeleteGateway(ctx context.Context, req *ns.DeleteGatewayRequest) (*empty.Empty, error) {
  	var id lorawan.EUI64
  	copy(id[:], req.Id)
  
  	if err := storage.FlushGatewayCache(storage.RedisPool(), id); err != nil {
  		return nil, errToRPCError(err)
  	}
  
  	if err := storage.DeleteGateway(storage.DB(), id); err != nil {
  		return nil, errToRPCError(err)
  	}
  
  	return &empty.Empty{}, nil
  }
docs: // DeleteGateway deletes a gateway.