DocsBuilding AppsInstalling IntercomAPI & Webhook ReferenceCanvas Kit Reference
DocsApp StoreForumBlogYour Apps

Delete a Lead

Example ID Delete Request

$ curl \
https://api.intercom.io/contacts/5811f6bbe6b4704ddfa84ac0 \
-X DELETE \
-H 'Authorization:Bearer <Your access token>' \
-H 'Accept:application/json'
HTTP/1.1 200 Ok

{
    "type": "contact",
    "id": "5811f6bbe6b4704ddfa84ac0",
    "user_id": "77177570-cf5d-4f1a-bc75-75202af47d4f",
    "anonymous": true,
    "email": "[email protected]",
    "phone": "00353875551234",
    "name": "O&#39;Brien",
    "pseudonym": "Lime Camel from Dublin",
  ...
}
# NB: Full Contact objects are returned
contact = intercom.contacts.find(:id => "530370b477ad7120001d")
intercom.contacts.delete(contact)
Contact user = new Contact().setId("530370b477ad7120001d");
Contact.delete(contact);
<?php
$intercom->leads->deleteLead("596f6c41a43a45f05de3275f");
?>

Leads can be deleted via their id, or with a user_id parameter.