Delete a contactMenu

Delete a contact

DELETE/v1/contacts/{id}

Requires an API key with the contacts:delete scope. About keys and scopes

Works with integration and partner keys, not agent keys.

Safe to retry: a repeat sets the same values again. About idempotency

Deletes one contact and its data, for a right-to-erasure request: its events, list memberships, consent changes and journey enrollments go with it. Journey messages go with the enrollments; campaign and transactional messages are kept for campaign totals but anonymised: the address, content and provider ids are removed and nothing links them to the person. Address suppressions are kept, so a deleted address that is imported again is still not mailed. While a message to the contact is being handed to the provider, which takes seconds, it answers 409 CONTACT_SEND_IN_PROGRESS; retry shortly. A message waiting to be retried is skipped (contact_deleted) instead; a push that already reached one of the contact's devices is marked sent, and one a push service refused is marked failed, as it would have ended anyway. It cannot be undone. Requires contacts:delete; agent keys are refused.

Path parameters

idstringrequired

Kirora's id for the contact, your own with idType=externalId, or its email address with idType=email, URL-encoded (@ as %40).

1–255 characters

Query parameters

idTypestringoptional

What {id} is: Kirora's id for the contact (id, the default), your own (externalId, as set with identify) or its email address (email, matched trimmed and without case).

one of id, externalId, email · default "id"

Header parameters

Kirora-Workspacestringoptional

Partner keys only: the child workspace to act in, by the external id the partner gave it. Without it, a partner key acts in its own workspace. Any other key that sends it is refused with 403, and an unknown workspace is 404.

pattern ^[A-Za-z0-9._:-]{1,128}$

Returns

Returns 204 No Content with an empty body. It can also return 409 Conflict; see the statuses below. Otherwise returns an error; Errors lists every code and which to retry.

  • 204 No ContentThe contact was deleted.
  • 409 ConflictThe request conflicts with current state — a duplicate unique value, or a resource whose status does not allow this operation.