> ## Documentation Index
> Fetch the complete documentation index at: https://docs.deepidv.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Purge Enrollment

> Delete a session's enrolled face data

```
DELETE /v1/igaming/anti-cheat/{session_id}
```

Deletes the session's **own** enrolled face (Rekognition) and its dedup crosswalk entry — the GDPR/reset path for removing an applicant's biometric enrollment.

This acts on the session's own enrollment only — there is **no** matched-session fallback. A `DUPLICATE` session that never enrolled its own face returns `deleted: false`. This call is idempotent.

<Warning>
  A face exclusion lives on the enrollment record, so purging a session that was excluded via [Exclude Face](/api-reference/igaming/exclude-face) or [Exclude Applicant](/api-reference/igaming/exclude-applicant) also **removes that face entry from the self-exclusion registry**. Identity (document-number) entries are unaffected. To keep a person excluded after deleting their biometric data, make sure an identity entry exists first.
</Warning>

## Request

### Path parameters

| Parameter    | Type   | Required | Description                                   |
| ------------ | ------ | -------- | --------------------------------------------- |
| `session_id` | string | Yes      | The session whose enrolled face data to purge |

### Headers

| Header      | Required | Description  |
| ----------- | -------- | ------------ |
| `x-api-key` | Yes      | Your API key |

### Example request

<CodeGroup>
  ```bash cURL theme={null}
  curl -X DELETE https://api.deepidv.com/v1/igaming/anti-cheat/b8991ba9-2566-4fe5-b758-66f387c3e28b \
    -H "x-api-key: YOUR_API_KEY"
  ```

  ```javascript Node.js theme={null}
  const response = await fetch(
    "https://api.deepidv.com/v1/igaming/anti-cheat/b8991ba9-2566-4fe5-b758-66f387c3e28b",
    {
      method: "DELETE",
      headers: { "x-api-key": "YOUR_API_KEY" },
    }
  );

  const data = await response.json();
  ```

  ```python Python theme={null}
  import requests

  response = requests.delete(
      "https://api.deepidv.com/v1/igaming/anti-cheat/b8991ba9-2566-4fe5-b758-66f387c3e28b",
      headers={"x-api-key": "YOUR_API_KEY"},
  )
  ```
</CodeGroup>

## Response

### 200 — Success

| Field     | Type           | Description                                             |
| --------- | -------------- | ------------------------------------------------------- |
| `deleted` | boolean        | Whether an enrollment was found and deleted             |
| `face_id` | string \| null | The deleted face ID, or `null` when nothing was deleted |

### Error responses

| Status                      | Description                       |
| --------------------------- | --------------------------------- |
| `400 Bad Request`           | Missing or malformed `session_id` |
| `401 Unauthorized`          | Invalid or revoked API key        |
| `403 Forbidden`             | `x-api-key` header missing        |
| `500 Internal Server Error` | Unexpected server error           |

<ResponseExample>
  ```json 200 theme={null}
  {
    "deleted": true,
    "face_id": "8febb583-fddb-4fd4-97a3-71bd5b9e9b2c"
  }
  ```
</ResponseExample>
