> For the complete documentation index, see [/llms.txt](/llms.txt).

> Source: /docs/capabilities/parse/data-handling

# Data handling and retention

This page explains how the Document Parse API handles the files in your requests and the inference results it returns.

## Input file transfer

To process a document, the Document Parse API receives the original file in your request.

## Retention

| Data              | Synchronous API | Asynchronous API                                                           |
| ----------------- | --------------- | -------------------------------------------------------------------------- |
| Input file        | Not stored      | Deleted when inference is complete                                         |
| Inference results | Not stored      | Stored for 30 days after inference is complete, then deleted automatically |

If an asynchronous request fails, its input file is instead stored for up to 3 days and then deleted automatically.

## Delete data yourself

Before the retention period ends, you can use the delete API to delete an asynchronous request that has finished processing. Requests that are still processing cannot be deleted. Deleting a request immediately deletes its input file and inference results, and no backup copies remain. For details, see [Delete inference results](/api/parse/document-parsing/async#delete-inference-results) in the Asynchronous API reference.

## Model training

API input data is not used for model training.