Delete a contact

SDK platic.clients.delete()

Deletes a contact's profile data and notes. Channel identifiers and conversation history are kept. Deletion cannot be undone.

Example

await platic.clients.delete("client_123");

Path parameters

ParameterTypeDescriptionRequired
idstringCan be the contact's ID or their phone number in E.164 format without +✓

Response

{
  "status": "success",
  "message": "Client deleted successfully"
}

Errors

Statusdetails.codeWhen it happens
400INVALID_REQUESTThe identifier is not a valid contact identifier
400INVALID_REQUESTThe credential covers several workspaces and ?workspace= is missing, or the supplied workspace is not authorized. details.available lists the available ones and details.requested shows the one you sent
401UNAUTHENTICATEDThe credential is missing or invalid
403FORBIDDENThe credential does not have the Contacts module (Missing contacts permission), or the user's role is read-only
403INSUFFICIENT_SCOPEAn OAuth token without the platica:write scope tried to write. details.requiredScope says which one is missing
404CLIENT_NOT_FOUNDNo contact in that workspace has that identifier, it was deleted, or it is outside the reach of the user's role
404WORKSPACE_NOT_FOUNDThe credential does not carry any workspace
409MULTIPLE_CONTACTS_MATCHTwo contacts have that email: use the ID. details.clientIds lists them
502UPSTREAM_ERRORPlatica did not confirm the deletion. Retry with the same identifier

The general error format is in Errors.

Notes

What gets deleted

  • The contact's name, personal data, tags and custom fields are erased. It stops showing up in List contacts and Get a contact answers 404.
  • Channel identifiers (phone number, WhatsApp, Instagram, Telegram and Facebook IDs) and the creation date are kept to preserve conversation history.
  • The contact's internal notes and the files attached to those notes are permanently deleted.