---
updatedAt: 2026-06-25T09:31:02.000Z
agentTools:
  projectIndex: https://marketing.developer.dotdigital.com/llms.txt
---

# Deletes a contact using a specific identifier

Delete a contact using a specific identifier

<span class="callRateMedium"></span>

> You must ensure you understand [how we handle contact deletions](https://marketing.developer.dotdigital.com/reference/unified-contacts#contact-deletion)

<br />

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Contacts",
    "description": "Create, Get, update, and delete contacts. Use this API to look up contacts\nby identifier, perform full or partial updates on a single contact, bulk-import\ncollections of contacts asynchronously, and bulk-delete contacts. When listing\ncontacts you can filter by contact status, list subscription status, list\nmembership, segment, or creation and modification date. Each contact can carry\ndata fields, channel properties (email, SMS, WhatsApp), list memberships,\nmarketing preferences, and consent records.",
    "version": "3.5.0"
  },
  "externalDocs": {
    "description": "Learn more about Dotdigital APIs",
    "url": "https://developer.dotdigital.com"
  },
  "servers": [
    {
      "url": "https://{region}-api.dotdigital.com",
      "variables": {
        "region": {
          "description": "The Dotdigital region id your account belongs to",
          "enum": [
            "r1",
            "r2",
            "r3"
          ],
          "default": "r1"
        }
      }
    }
  ],
  "security": [
    {
      "basicAuth": []
    }
  ],
  "paths": {
    "/contacts/v3/{identifier}/{value}": {
      "delete": {
        "summary": "Deletes a contact using a specific identifier",
        "description": "Delete a contact using a specific identifier",
        "operationId": "deleteContact",
        "parameters": [
          {
            "name": "identifier",
            "in": "path",
            "description": "The field to use to uniquely identify the contact. This can be a custom identifier or a contact identifer of **contactId**, **email** or **mobileNumber**",
            "required": true,
            "schema": {
              "maxLength": 50,
              "minLength": 1,
              "pattern": "(^[-A-Za-z0-9_]{1,50}$)",
              "type": "string"
            },
            "examples": {
              "email": {
                "summary": "Email address",
                "value": "email"
              },
              "mobileNumber": {
                "summary": "Mobile number",
                "value": "mobileNumber"
              },
              "contactId": {
                "summary": "Contact ID",
                "value": "contactId"
              },
              "customIdentifier": {
                "summary": "Custom identifier",
                "value": "loyaltyId"
              }
            }
          },
          {
            "name": "value",
            "in": "path",
            "description": "The unique value to identify the contact.<br>***Note:** Must be the same type as the **identifier***",
            "required": true,
            "schema": {
              "maxLength": 256,
              "minLength": 1,
              "type": "string"
            },
            "examples": {
              "email": {
                "summary": "Email address (use with the email identifier)",
                "value": "amelia.thornbury@emailsim.io"
              },
              "mobileNumber": {
                "summary": "Mobile number (use with the mobileNumber identifier)",
                "value": "447700900184"
              },
              "contactId": {
                "summary": "Contact ID (use with the contactId identifier)",
                "value": "35212311"
              },
              "customIdentifier": {
                "summary": "Custom identifier value (use with the loyaltyId identifier)",
                "value": "LOY-000184"
              }
            }
          },
          {
            "name": "x-ddg-integration-token",
            "in": "header",
            "description": "If you are a partner of Dotdigital and have a [verified integration](https://developer.dotdigital.com/docs/partner-integration-verification) then include your [integration tracking token](https://developer.dotdigital.com/docs/verified-integration-tracking) here.",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "5a96bc79-19a7-4544-973b-e2da0c9136f9"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Contact deleted",
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "contactId"
                  ],
                  "type": "object",
                  "properties": {
                    "contactId": {
                      "$ref": "#/components/schemas/contactId"
                    }
                  },
                  "description": "The contact id of the deleted contact"
                },
                "examples": {
                  "contactDeleted": {
                    "summary": "Contact deleted",
                    "description": "Returns the **contactId** of the deleted contact.<br>\n**Request:** `DELETE /contacts/v3/email/marcus.oldacre@emailsim.io`<br><br>\n**Note:** After the call, **getContact** and **deleteContact** return **404 Not Found** for this contact, and **getContacts** returns it with the status **deleted**.",
                    "value": {
                      "contactId": 35212498
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/errorResponse"
                },
                "example": {
                  "errorCode": "contacts:invalidId",
                  "description": "The id value '123646' is invalid for the identifier 'email'"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Contact not found, or the contact is already deleted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/errorResponse"
                },
                "example": {
                  "errorCode": "contacts:contactNotFound",
                  "description": "The following contacts could not be found.",
                  "details": [
                    {
                      "item": "35219999",
                      "description": "Not found using the identifier 'ContactId'."
                    }
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "errorResponse": {
        "required": [
          "description",
          "errorCode"
        ],
        "type": "object",
        "properties": {
          "errorCode": {
            "type": "string",
            "description": "Unique error code"
          },
          "description": {
            "type": "string",
            "description": "Description of the issue"
          },
          "details": {
            "type": "array",
            "items": {
              "required": [
                "description",
                "item"
              ],
              "type": "object",
              "properties": {
                "item": {
                  "type": "string",
                  "description": "Item the error is associated with, for example, field name, unique identifier for an entity or item in batch"
                },
                "description": {
                  "type": "string",
                  "description": "Description of the error"
                }
              }
            }
          }
        }
      },
      "contactId": {
        "minimum": 0,
        "type": "integer",
        "description": "Immutable unique identifier for the contact",
        "example": 35212311
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "x-ddg-notes": "This version corrects the schema and documentation for importing contacts and for email channel properties. The changes are additive; the API behaviour does not change.\n* **importContacts:** Added request examples for these use cases: update data fields and identifiers, unsubscribe from email, set email open tracking, add a consent record, and update data fields, identifiers and list membership.\n* **getContacts:** Added response examples: key details only, selected data fields with lists and preferences, a page with a next link, contacts modified since the last poll, and modified contacts in a list or a segment.\n* **importContact:** Added request examples for the same use cases, and an example to resubscribe a contact to email. Added request examples that create and then update a contact, with their 201 and 200 response examples. The description now states that a new contact needs **identifiers.email** or **identifiers.mobileNumber** in the request body, and a 400 example shows the error.\n* **deleteContacts:** Each item must now contain exactly one identifier. Items that use **email** or **mobileNumber** are now valid against the schema. Added a request example and corrected the 400 error example.\n* **getImportStatus:** Added response examples, including a contact that has only a custom identifier. **matchIdentifier** is no longer required in **failures**, because the API does not return it. Replaced the failures example.\n* **Contact responses:** The email, SMS and WhatsApp channel status values now match the values the API returns. A deleted channel is not included in **channelProperties**.\n* **getContact:** Added examples for each identifier type in the path, and response examples for a full contact and for a contact whose mobile number was deleted.\n* **replaceContact:** Added examples for each identifier type in the path, request examples to replace data and lists and to remove a mobile number, and a response example.\n* **deleteContact:** Added examples for each identifier type in the path, and a response example.\n* **getContact, replaceContact and deleteContact:** Corrected the 404 error examples to match the API.\n* **getDeleteStatus:** Added response examples. Corrected the 404 response, which described an import request in place of a delete job.\n* **createContact:** Added request examples: email address only, a full profile with channels, lists, preferences and consent, verified double opt-in, and mobile number only. Added a 201 response example. Corrected the 409 error example. The description now states that the request must contain **email** or **mobileNumber**, and a 400 example shows the error.\n* **importContacts:** The description now states that a new contact needs **email** or **mobileNumber** in its identifiers, and the failure the import reports if it does not.\n* **importContacts:** Contacts that match on **contactId** are now valid against the schema. The request uses the new **contactRequestIdentifiers** schema, where **contactId** is an integer.\n* **Email channel properties:** **emailType**, **optInType**, **status** and **openTracking** are no longer required. The descriptions now give the default for contacts that do not have an email channel yet, and the behaviour for contacts that already have one.\n* **Email channel properties:** **resubscribeOptions** can now be sent together with the other email channel properties.\n* **resubscribeWithNoChallenge:** The default is now **false**, which agrees with the API behaviour.\n* **Contact responses:** Email channel properties now pass validation. **emailType** and **optInType** values are now camelCase (for example **html** and **single**), which agrees with the API. **openTracking** is now included and is always returned. The request channel properties schema is no longer applied to responses, so all email and SMS statuses and the SMS **countryCode** are now valid.\n* **Contact responses:** Consent records and preferences now pass validation. Preferences require **publicName** and **privateName**, which the API returns, in place of the undefined **name** property.\n* **x-ddg-integration-token:** The header now uses **format: uuid** in place of a pattern that rejected every value. Send the token as a UUID without braces.\n* **Contact responses:** The **created**, **updated** and consent record **dateTimeCreated** descriptions now state the formats the API returns. The **preferences** and **consentRecords** arrays can now be empty or not included.\n* **Deleted contacts:** The descriptions now explain when **email** and **mobileNumber** have the value **deleted**.\n* **replaceContact:** The description now states that email channel properties you do not specify remain unaltered.",
  "x-samples-languages": [
    "curl",
    "csharp",
    "java",
    "javascript",
    "node",
    "python",
    "php",
    "ruby"
  ]
}
```

# Sibling pages

* [Get contacts based on your criteria](https://marketing.developer.dotdigital.com/reference/getcontacts-1.md)
* [Import contact collection](https://marketing.developer.dotdigital.com/reference/importcontacts-1.md)
* [Get the status of a contacts import request](https://marketing.developer.dotdigital.com/reference/getimportstatus.md)
* [Get a contact by an identifier](https://marketing.developer.dotdigital.com/reference/getcontact.md)
* [Get the status of a delete contacts job](https://marketing.developer.dotdigital.com/reference/getdeletestatus.md)
* [Delete multiple contacts](https://marketing.developer.dotdigital.com/reference/deletecontacts.md)
* [Create a contact](https://marketing.developer.dotdigital.com/reference/createcontact-1.md)
* [Replace a contact](https://marketing.developer.dotdigital.com/reference/replacecontact.md)
* [Import a single contact](https://marketing.developer.dotdigital.com/reference/importcontact.md)