package profile_client_grpc

import (
	"context"
	"fmt"

	pb "gitlab.golang-school.ru/potok-2/lessons/lesson-20/gen/grpc/profile_v1"
)

func (c *Client) Delete(ctx context.Context, id string) error {
	input := &pb.DeleteProfileInput{
		Id: id,
	}

	_, err := c.client.DeleteProfile(ctx, input)
	if err != nil {
		return fmt.Errorf("client.DeleteProfile: %w", err)
	}

	return nil
}
