> For the complete documentation index, see [llms.txt](https://docs.tryterra.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tryterra.co/help-center/help-topics/data-api-sdk/api-endpoints-errors-and-migrations/data-deletion-via-ticket.md). Agents can also search and read this documentation through its [MCP server](https://docs.tryterra.co/~gitbook/mcp).

# How do I delete lab report uploads?

Delete a lab report yourself with DELETE /v2/reports/{session\_id}. No ticket needed.

**Delete a lab report yourself through the API. You do not need to open a ticket.**

```bash
curl -X DELETE "https://access.tryterra.co/api/v2/reports/SESSION_ID" \
  -H "dev-id: YOUR_DEV_ID" \
  -H "x-api-key: YOUR_API_KEY"
```

A `204` means the report is deleted. It is removed from the API immediately, and every endpoint returns `404` for it afterwards. Delete works even if your Lab Reports access has ended.

To delete every report for one patient, list them with `GET /v2/reports?reference_id=...` and delete each `session_id`.

## What happens to the data

* **Files, results and the copies Terra keeps** are erased from active systems within 30 days. The target is 24 hours.
* **Backup copies** are kept only for disaster recovery, and expire within 10 days.
* **File download URLs** already issued keep working until they expire, at most one hour after they were issued.
* **Copies delivered to your destinations**, such as your webhook store, bucket or database, are yours to delete.

Reports you do not delete are kept until you delete them or close your account. To close your account, contact support.

See [Delete a Session](https://docs.tryterra.co/lab-reports/api-reference#delete-a-session) in the API reference.
