Set how long conversations are kept

Choose a retention period for your organization so finished tasks and their transcripts are deleted automatically after 30, 90, 180 or 365 days. Admin-only, off by default.

By default Nairi keeps every task and its messages for as long as your organization exists. An organization admin can instead set a retention period. Once a finished task is older than the period, a daily cleanup deletes it permanently, together with every message in it.

Who can change it

Only admins. The control lives on the Permissions tab of the organization settings, which members do not see.

Setting the period

  1. Open Settings → Organization → Permissions and find Data retention.
  2. Under Delete finished tasks after, pick Keep forever, 30 days, 90 days, 180 days or 365 days.
  3. Click Save changes.
  4. If the new period is shorter than the old one, a dialog tells you how many finished tasks are already older than it, for example Delete 412 finished tasks? Click Delete 412 tasks to confirm. Deleting starts with the next daily cleanup. If no task is affected yet, the dialog is titled Delete finished tasks after 30 days? and the button reads Set to 30 days.

Lengthening the period or switching back to Keep forever saves straight away, because neither can delete anything.

Every change is recorded on the organization's Activity tab, and so is every cleanup that deleted something, in entries of up to 500 tasks each.

When exactly a task is deleted

  • The clock starts when a task was last touched: when it finished, or when its last message arrived. Active tasks are never deleted, however old they are. A task that is still running when its age passes the period is left alone and gets its own full period once it finishes.
  • The cleanup runs once a day at 03:00 UTC, so a task normally goes within a day after its period ends. Example: with 30 days set, a task that finished on 1 March is deleted by the run after 31 March.
  • Shortening the period applies from the next daily run. Lengthening it or turning it off stops future deletions but brings nothing back.

What gets deleted

  • The task itself: from the Tasks page, from an automation's Runs list, from the agent's conversation list in the API. Chats started from a share link are tasks too.
  • Every message in it, including the agent's progress trace and the per-message cost and token figures.

What is not covered

  • Active tasks.
  • Temporary attachments, which are deleted after 24 hours regardless of the setting.
  • Messages in your Slack or Discord workspace. The retention setting does not delete them.
  • Code, branches and pull requests on GitHub.
  • Agents, rules, skills, MCP configs, vaults and scheduled jobs.
  • The organization's activity log.
  • Usage records: task ids and counts, plus the text of agent error or system notices and of feedback you send us.
  • Files on the agent's own compute (working files, CLI session files, local logs, attachment folders). They are removed when you delete the agent at the latest; some, such as the CLI session logs, go sooner. Self-hosted agents keep them on your machine.
  • Database backups and model-provider copies. See Data retention on the security page for their clocks.

API clients

Deleted conversations stop appearing in List for agent. List messages returns an empty list for them; Continue, stopping the conversation and getting one of its messages answer 404. There is no deletion event.


Have a question this page doesn't answer? Email support@nairi.ai.

On this page