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