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

# Data retention and erasure

> Choose how long ProofAge keeps selfies, document images and document data, and erase a person's data on request in the console, the MCP server or the API.

## How long data is kept

| Data | Kept for |
| - | - |
| Selfies, document images and the document data read from them | The retention period you choose (below) |
| Capture recordings | 30 days, then deleted |
| API request logs | 30 days |
| The decision, status, reason, dates and the age result | Until you erase them |

The retention period covers the images a person sent and what was read from their documents (names, dates of birth, document numbers). Once you choose a period, the data read from a document is never kept longer than its images, and the date of birth read from the document goes with it. The decision, the status, the reason and the age result (the age and whether it passed) stay, so you can still show why a person was approved or declined.

After the images are deleted, their `url`s in the API are `null` and downloading them answers `404`. After the document data is deleted, the document fields read `null`; the document type and issuing country stay. The verification page in the console says when this happened. This scheduled deletion is not an erasure: the verification's `erasure` field stays `null`.

## Choosing the retention period

Pick one of 30, 60, 90 or 180 days, 1, 2 or 5 years, or **Unlimited**.

* **For the whole account:** administrators set it in the console under **Settings**, **Data retention**. A new account starts at 30 days.
* **For one workspace:** edit the workspace and choose a period under **Data retention**, or leave **Use the account default**. A facial age estimation workspace in [Private mode](https://docs.proofage.net/console/private-mode.md) that deletes its media right after the decision has nothing to set, so the choice is not offered there.
* **Through the [MCP server](https://docs.proofage.net/integration/mcp/overview.md):** `create-workspace` and `update-workspace` take `evidence_retention_days` (30, 60, 90, 180, 365, 730 or 1825 days, or `0` for unlimited; `null` follows the account). Changing a live workspace is previewed first, with the deletion warning, and applied only when you confirm.

The workspace's own period wins over the account's. An account that has not chosen a period keeps images for 60 days and its document data until it is erased.

Deletion runs every night against the period in force then. **Shortening** a period deletes everything older than the new one that night, and it cannot be recovered; the console asks you to confirm first and names the workspaces the change reaches. **Lengthening** a period keeps what is still there but cannot bring back what was already deleted.

## Erasing a person's data

When a person asks you to delete their data, or you no longer need it, erase it:

* on the verification's page in the console, with **Erase Personal Data**;
* through the [MCP server](https://docs.proofage.net/integration/mcp/overview.md), with `prepare-purge-personal-data` and `confirm-purge-personal-data`;
* or from your own code, with a signed `DELETE /v1/verifications/{verification}/personal-data` call (see below).

You pick why: the person asked (`data_subject_request`), your company asked (`customer_request`), retention, test data, or other. Erasure removes the images, the capture recordings, the document fields, the analysis results and the device data. The status, the reason, the dates and the audit trail stay, and so does the fact of the erasure.

**Erasure cannot be undone.** In the console and the MCP server, administrators and support specialists can erase; developers cannot. Through the API, anyone holding the workspace's secret key can.

### Through the API

```bash theme={null}
DELETE /v1/verifications/{verification}/personal-data
```

```json theme={null}
{
  "reason_code": "data_subject_request",
  "reason": "Asked by email on 6 November"
}
```

`reason_code` is required: `data_subject_request`, `customer_request`, `retention_policy`, `test_data` or `other`. `reason` is optional, up to 1,000 characters, and required with `other`. The request is signed like any other; see [API authentication](https://docs.proofage.net/getting-started/api-authentication.md).

* Only a verification with a decision can be erased: `approved`, `declined`, `abandoned` or `expired`. Any other status answers `422 VERIFICATION_NOT_FINAL`, because review and a retake may still need the data.
* The answer is the verification, as [`GET /v1/verifications/{verification}`](https://docs.proofage.net/integration/retrieving-results#the-decision) returns it, with its `erasure` field set. Calling again on an erased verification answers the same way, so a retry is safe.
* Right after a decision, while ProofAge is still finishing its checks, the call can answer `409 VERIFICATION_PROCESSING`. Wait for the `Retry-After` header (3 seconds) and call again. A webhook handler that erases as soon as the decision arrives can meet this.
* No webhook is sent for an erasure.
* Besides the [general limits](https://docs.proofage.net/integration/rate-limiting.md), a workspace can erase 60 verifications a minute.

Every code it can answer is in [Error handling](https://docs.proofage.net/integration/error-handling.md#erasing-personal-data). The [server SDKs](https://docs.proofage.net/integration/sdks.md) wrap the call: `erasePersonalData()` in Node and PHP, `erase_personal_data()` in Python.

## After erasure

The verification's `erasure` field says when the data was erased, why, and whether your team (in the console, the MCP server or the API) or ProofAge did it. Document fields read `null` and images answer `404`. See [Data models](https://docs.proofage.net/api-reference/data-models.md#verification).

ProofAge processes this data for you under our [Data Processing Agreement](https://proofage.net/dpa). How the data is protected is on [Security and data protection](https://docs.proofage.net/getting-started/security.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.