# Deletion and retention

> What a delete removes, and when. Some deletes are final at once. Others can be restored for 30 days, then the data is removed, and removed data leaves backups on a fixed schedule.

Canonical URL: https://harnessrouter.ai/docs/deletion-and-retention
Section: API reference

## What a delete does, for each kind of data

- **Tasks (sessions):** Removed at once, with their transcripts, working folders, responses and outputs. Not undoable.
- **API keys:** Stop working at once and are removed. Not undoable.
- **Plugin credentials and stored tokens:** Unusable at once when you disconnect, sign out or delete them. Not undoable.
- **Agents, responses, environments, arenas and uploaded files:** No longer usable at once, removed 30 days later. Until then they can be restored by emailing contact@harnessrouter.ai.
- **Your account:** Kept 30 days so it can be restored, then everything in it is erased.

## Backups

Removed data also leaves our backups: within 14 days for files and records, and within 90 days for stored credentials, which are encrypted and unreadable to the service from the moment they are deleted.

- [Sessions and files](https://harnessrouter.ai/docs/sessions-and-files): Deleting a task, and what goes with it.
- [Harnesses](https://harnessrouter.ai/docs/harnesses-api): What deleting a configured agent keeps and what it removes at once.
- [Upload files](https://harnessrouter.ai/docs/upload-files): Deleting an uploaded file, and what a task that names it gets afterwards.

## Open standard

This page is the retention statement UHP asks every server to publish, since silence is not an answer, and deleting a task here makes its transcript and artifacts unreachable at once, as the data handling rules require. See [data handling in UHP's Security chapter](https://unifiedharnessprotocol.org/spec/security).
