code: func (n *NetworkServerAPI) DeleteDeviceProfile(ctx context.Context, req *ns.DeleteDeviceProfileRequest) (*empty.Empty, error) {
  	var dpID uuid.UUID
  	copy(dpID[:], req.Id)
  
  	if err := storage.FlushDeviceProfileCache(storage.RedisPool(), dpID); err != nil {
  		return nil, errToRPCError(err)
  	}
  
  	if err := storage.DeleteDeviceProfile(storage.DB(), dpID); err != nil {
  		return nil, errToRPCError(err)
  	}
  
  	return &empty.Empty{}, nil
  }
docs: // DeleteDeviceProfile deletes the device-profile matching the given id.