Skip to main content

contacts.deleteByPhones

Delete contacts by phone number

func (c *Client) ContactsDeleteByPhones(ctx context.Context, phones []string) (bool, error)

Calling this method

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

res, err := api.ContactsDeleteByPhones(ctx, phones)
if err != nil {
return err
}
_ = res // bool
return nil
})

Parameters

NameTypeRequiredDescription
Phones[]stringyesPhone numbers

Returns

bool

References