# Delete Contact

Permanently deletes a contact, both channels, subscriptions, tags, field values and history. The contact leaves campaigns and automations; there is no undo. Only delete a contact the user explicitly asked to delete, after naming the contact back to them. To keep it, use unsubscribe-contact.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "contactId": {
      "type": "integer",
      "description": "Numeric contact ID returned by search-contacts",
      "minimum": 1
    },
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "description": "User ID of the account; omit for the account the access token works in",
      "default": null,
      "minimum": 1
    }
  },
  "required": [
    "contactId"
  ],
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "accountId",
    "contactId",
    "email",
    "smsNumber",
    "deleted"
  ],
  "properties": {
    "accountId": {
      "type": "integer"
    },
    "contactId": {
      "type": "integer"
    },
    "email": {
      "type": "string"
    },
    "smsNumber": {
      "type": "string"
    },
    "deleted": {
      "type": "boolean"
    }
  }
}
```

