# How long data is kept

> Set how long a product keeps visit detail and IP addresses, and know when other data is deleted.

Each product decides how long Handline keeps what it records about visitors, within Handline's limits. A daily job deletes what is past its time.

## Set a product's retention

An owner or admin does this on **Retention** in the product's settings (operation `products.setRetention`).

1. Set **Visit detail, in days**: from 1 to 400. The default is 90.
2. Set how long the IP address and browser string are kept: from 1 to 30 days. The default is 7.
3. Save.

Shorter is safer; longer lets late outcomes join their visits. An outcome reported after its visit was deleted is still recorded, untraced.

## When everything else is deleted

| Data | Deleted |
| --- | --- |
| Visit detail and consent records | After the product's visit retention. |
| IP address and browser string | After the product's IP retention, sooner than the rest of the visit. |
| Daily totals | Kept. They hold counts only, with no detail about any visitor. |
| Lead form answers | As soon as your endpoint accepts them, and after 48 hours whether delivered or not. |
| An export's download | After 3 days. |
| A closed workspace | 14 days after it is closed. Backups age out within 30 days after that. |
| The record, outcomes and the audit log | While the workspace exists. |

## Delete sooner

To delete one visitor's data now, or to close a product or workspace, see [delete data](/docs/privacy/deletion).
