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

# Data Retention

> Delete uploaded robot recordings automatically once they reach a certain age, so automatic uploads don't fill your storage.

Robots can upload recordings without anyone asking: around every alarm incident, and when a recording ends (for example at the end of a CI run). Over time those files add up. Data retention deletes uploaded recordings from the cloud once they are older than a number of days you choose.

Open it from **Settings > Data Retention**. Only admins can see and change it.

![Settings > Data Retention](https://mintcdn.com/insaion/TVVOa2-QC7LRXnX6/assets/settings/data-retention.png?fit=max\&auto=format\&n=TVVOa2-QC7LRXnX6\&q=85\&s=6a1538bace5792048ac18e9931d2e14e)

## Settings

| Setting | What it does |
| - | - |
| **Delete old uploads automatically** | Turns the rule on. It is off by default, so nothing is deleted until you turn it on. |
| **Keep uploads for** | How many days an upload is kept, from 1 to 3650. Counted from when the file was uploaded, not when it was recorded. |
| **Apply to** | Which kinds of upload the rule deletes. Pick at least one. |

The kinds of upload you can pick:

* **Incident uploads:** uploaded automatically around an alarm incident. See [Incidents](https://docs.insaion.com/alarms/incidents.md).
* **Recording end uploads:** uploaded automatically when a recording ends, for example a [CI run](https://docs.insaion.com/agent/ci-simulation.md).
* **Copilot uploads:** requested by Copilot while investigating an incident.
* **Manual uploads:** requested by a person from a device's [Recordings tab](https://docs.insaion.com/devices/device-recordings.md#upload-a-time-window). Uploads made before INSAION tracked who requested them also count as manual.

By default only the two automatic kinds are ticked, so files someone asked for are kept until you decide otherwise.

Files you upload by hand in the **Manual uploads** section of [Recordings](https://docs.insaion.com/recordings/overview.md#uploaded) are not affected by this setting.

## Preview before you save

While you change the settings, the page shows how many uploads, and how much storage, the rule would delete right now. If saving would delete files straight away, you are asked to confirm first.

## When files are deleted

INSAION checks once an hour. Each check deletes the uploads that have passed their age, and their storage is given back to your organization's quota, the same as deleting them by hand. The bottom of the page shows when the last check ran, what it deleted, and the total deleted so far.

If the rule covers a large backlog, it is worked through over a few hours rather than all at once.

Uploads that are still being assembled in the cloud are never deleted halfway through.

> [!WARNING]
>
> Deleted uploads cannot be recovered. The recording on the robot is not
> touched, so you can upload the same time window again while the robot still
> has it.

## What you see afterwards

* On the device's timeline, a deleted window shows as recorded but not uploaded, so you can request it again.
* In the incident history, an incident whose upload was deleted shows a **Deleted** badge instead of **Ready**.

## Choosing a retention period

* **CI and simulation runs:** a short period (7 days) usually works, since a run is reviewed soon after it finishes.
* **Incidents:** keep them long enough to cover your investigation and review cycle, often 30 to 90 days.
* **Storage limits:** if you use the **Pause Data Collection** storage policy, retention keeps space free so new incident uploads aren't refused. See [Billing](https://docs.insaion.com/settings/billing.md).


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