Skip to main content

photos.deletePhotos

Deletes profile photos. The method returns a list of successfully deleted photo IDs.

func (c *Client) PhotosDeletePhotos(ctx context.Context, id []InputPhotoClass) ([]int64, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.PhotosDeletePhotos(ctx, id)
if err != nil {
return err
}
_ = res // []int64
return nil
})

Parameters

NameTypeRequiredDescription
ID[]InputPhotoClassyesInput photos to delete

Returns

[]int64

References