Skip to main content
DELETE
/
instances
/
{instanceId}
/
token
/
{token}
/
contacts
/
remove
Remove contacts
curl --request DELETE \
  --url https://api.z-api.io/instances/{instanceId}/token/{token}/contacts/remove \
  --header 'Client-Token: <api-key>'

Overview

This method is responsible for removing WhatsApp contacts from your phone’s contact list.
About this featureThe method for removing contacts from the WhatsApp list will only work for accounts that have already received the necessary update. Make sure your WhatsApp account has received the update before using this feature. Otherwise, the operation will not be completed successfully.

Attributes

instanceId
string
required
Your instance ID. Available in the Z-API panel under Instances.
token
string
required
Your Z-API instance token.

Request Body

["554499999999", "554499998888"]

Response

200

{
  "success": true,
  "errors": []
}

405

Make sure you are correctly sending the method specification, that is, verify that you sent DELETE as specified at the beginning of this topic.

415

If you receive a 415 error, make sure to add the “Content-Type” header to your request, which in most cases is “application/json”.