# Data retention

Output files are kept for 7 days and uploaded inputs for 24 hours. Task records and charges stay until you close your account.

## How long data is kept

| Data | Kept for | After that |
| --- | --- | --- |
| Generated output files | 7 days after the file is created | Deleted; a download answers 404. The task record and its charge stay. |
| Uploaded input files | 24 hours after the upload completes | Deleted; tasks already created with them are not affected. |
| Media URLs you send | Not stored as files | We keep the URL in the task's input; the file stays on your server. |
| Task records, inputs and charges | Until you close your account | Shown in the console and the API. |

Download the outputs you want to keep before they expire, and store them on your side. An expired output cannot be restored.

## Delete earlier

Delete an asset you no longer need with [delete an asset](/docs/api/deleteAsset). Deleting frees the storage it used at once.

For how many tasks you can run at once, see [Rate limits](/docs/rate-limits).
