--- title: "Data Retention Policy" slug: "virtual-agent-data-retention" updated: 2026-08-11T06:56:25Z published: 2026-08-11T06:56:25Z canonical: "docs.sestek.com/virtual-agent-data-retention" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.sestek.com/llms.txt > Use this file to discover all available pages before exploring further. # Data Retention Policy Data retention decides how long conversation data stays in the product and when it is deleted for good. This article covers the three policies in the **Data Retention** feature group (sessions, execution details and AI Test evaluation results), what each one removes, the rule that ties two of them together, and when the deletions actually run. The **Daily Conversation Reports** group, which ages out generated report files rather than conversation data, is covered in its own short section at the end. These values live in tenant Feature Management, which is host territory. A customer administrator can see the effect of these settings but cannot change them: ask your host administrator to set or adjust a period. > **⚠️ Warning:** Retention is **off** for a new tenant on every edition. Nothing is deleted until a host administrator ticks **Enable retention**, no matter what the period fields show. The period boxes are filled in from the start (12, 30 and 30 in the screenshot below), which reads as though deletion is already happening. It is not. If your obligation is to delete data on a schedule, confirm the toggle is on rather than assuming it. --- ## Before you start > **📝 Note:** The **Data Retention** group is part of the tenant's Features dialog, which only a host administrator can open. Nothing on this screen is reachable from inside the tenant, and there is no per project, per channel or per conversation override: whatever is set here applies to the whole tenant. The one exception to the toggle being off: when a tenant is created or updated through the external tenant provisioning API with a non-zero retention period, retention is switched on as part of that call. Upgrading an existing tenant never switches it on by itself. --- ## The Data Retention settings ![The tenant Features dialog with Data Retention selected, showing the Enable retention checkbox and the three retention periods](https://cdn.document360.io/9bca2910-6a3b-4224-9470-43f91f9a6d57/Images/Documentation/ai-agents-data-retention-features.png?sv=2026-02-06&spr=https&st=2026-12-02T04%3A46%3A08Z&se=2026-12-02T05%3A46%3A08Z&sr=b&sp=r&sig=wNcgGG5oEL2J%2FFtL1bkk%2Fpdpwt%2Frpc95Qn14ZJ605JY%3D) **1. Feature group list:** The left rail of the Features dialog, listing every feature group for this tenant (Post Session Flow, Outbound, Data Table and the rest). **Data Retention** is the group selected here. **Daily Conversation Reports** is a separate group with its own toggles. **2. Enable retention:** The master switch for all three policies below it. Default: **off**. While it is off, the three period fields are disabled and no deletion job does anything for this tenant. **3. Automatically delete sessions older than `[12]` months:** How long a conversation and everything recorded about it is kept. Unit: months. Range: 1 to 120. Default: 12, though a tenant is seeded from its edition (Basic 3, Standard 6, Premium 12), so the value you see may differ. **4. Automatically delete execution details older than `[30]` days:** How long the debug detail behind a conversation is kept. The conversation itself survives; only its execution detail is removed. Unit: days. Range: 1 to 90. Default: 30. The info icon beside it reads: *"Includes all execution logs shown in conversation details, such as tool calls, guardrails, and HTTP traces. Must be shorter than session retention."* **5. Automatically delete AI Test evaluation results older than `[30]` days:** How long AI Test runs, their evaluation results and the conversations those runs simulated are kept. Unit: days. Range: 1 to 90. Default: 30. Its info icon reads: *"Includes AI Test runs with their evaluation results and the conversations simulated by those runs. Must be shorter than session retention."* Each period is a number box, not a dropdown. It accepts digits only, a pasted value is stripped down to digits, and a value outside the range is pulled back to the nearest allowed number when you leave the field. The number sits inside the sentence, so the label reads as one line: "Automatically delete sessions older than 12 months". --- ## The three policies at a glance | On-screen label | What it deletes | Unit | Range | Default | | --- | --- | --- | --- | --- | | Automatically delete sessions older than {0} months | The conversation and its session, with every row belonging to them, plus files the flow produced at runtime | Months | 1 to 120 | 12 (edition seed: Basic 3, Standard 6, Premium 12) | | Automatically delete execution details older than {0} days | Only the execution detail of a conversation: AI Agent execution details, HTTP execution details, node executions and flow executions. The conversation stays | Days | 1 to 90 | 30 | | Automatically delete AI Test evaluation results older than {0} days | AI Test runs with their evaluation results, and the conversations those runs simulated | Days | 1 to 90 | 30 | --- ## Execution details must be shorter than session retention Both day-based periods have to be strictly shorter than session retention. The check converts months to days at a flat **30 days per month**, and the comparison is "less than", not "less than or equal to". So with a **3-month** session retention, 3 x 30 = 90, and the largest execution-detail value the product accepts is **89** days, not 90. Enter 90 and it is refused, even though 90 is inside the field's own 1 to 90 range. The refusals are worded like this: | Situation | Message | | --- | --- | | Execution-detail value outside 1 to 90 | *"Execution details retention value is not valid. Enter a value between 1-90."* | | Execution-detail value not shorter than session retention | *"Execution details retention must be shorter than session retention."* | | AI Test value outside 1 to 90 | *"AI Test evaluation result retention value is not valid. Enter a value between 1-90."* | | AI Test value not shorter than session retention | *"AI Test evaluation results retention must be shorter than session retention."* | | Session value outside 1 to 120 | *"Retention value is not valid. Enter a value between 1-120."* | > **📝 Note:** The rule is checked on every save, even when you changed only one of the two fields. The value you did not touch is read back and compared anyway, so **lowering session retention can be refused because of the execution-detail value already stored**. If you are cutting session retention to 1 or 2 months, lower the two day-based periods first. --- ## What goes with a session Deleting a session is not a matter of hiding a row from the Conversations grid. One deletion removes the conversation and the session together with everything recorded against them: - Messages and their attachments - Customer ratings - Recognitions, ambiguous intents and extracted named entities - Generative Q&A recognitions, Knowledge Base responses and their documents - AI Agent execution details, HTTP execution details, node executions and flow executions - AI Agent token consumption - **AI insight values and custom attribute values** > **⚠️ Warning:** AI insight values and custom attribute values are deleted with the session. Every report, dataset filter and export built on those values is therefore bounded by your session retention period: once a conversation ages out, the insight and attribute values it produced are gone with it. There is no recompute job for insight values, so a deleted value never comes back. ### Files kept in storage The previous version of this article said session data is deleted "excluding outgoing data used within the flow and pre-recorded audios". That is half right, and worth restating carefully, because the exclusion is narrower than it sounds. | Item | File in storage | Database rows | | --- | --- | --- | | A file reply whose file was produced during the conversation | Deleted | Deleted | | An outgoing file uploaded into the flow at design time | **Kept** | Deleted | | Audio generated or streamed during the conversation, and agent voice | Deleted | Deleted | | Pre-recorded audio played by the flow | **Kept** | Deleted | In other words, you keep the file itself, not the record of it having been sent. The message, the conversation and everything else in the list above is deleted regardless. > **⚠️ Warning:** Every deletion described in this article is a hard delete. There is no soft delete, no recycle bin and no restore. Data removed by a retention job can only come back from your own database backups. --- ## What an execution detail is, and what expiry looks like An execution detail is the debug material behind a conversation, shown on the conversation detail screen under **Execution Details**. Four blocks make it up: | Toggle on the conversation detail screen | What it shows | | --- | --- | | Show AI Agent tool call details | The tool calls an AI Agent made and what they returned | | Show guardrail details | Guardrail evaluations and their results | | Show HTTP call details | HTTP requests the flow made and their traces | | Show AI Agent Invoke Failure | The failure returned when an AI Agent invoke did not succeed | This is the material that answers "why did the agent do that", and it is usually only needed for a short while after a conversation ends. Giving it its own, shorter period is the point of the feature: you can keep conversations for a year and their traces for a fortnight. Once a conversation's execution details have expired, the conversation itself is still on the Conversations page and still fully readable. Only the four blocks are gone: all four toggles are disabled, and the section shows *"Execution details for this conversation have expired and are no longer available."* The tooltip beside the section explains why: *"Automatically deleted based on the execution details retention setting."* > **📝 Note:** Expiry is stamped on the conversation once and never reversed. Raising the execution-detail period afterwards does not bring the detail back for conversations already cleared; it only changes when future conversations are cleared. --- ## When the jobs run Each policy has its own nightly job. They run per tenant, and they never touch host-level data. | Policy | Runs at | Batching | | --- | --- | --- | | Session retention | 02:00 daily | Batched, one item per transaction, so a failure retries on the next run | | Execution details | 03:00 daily | 1,000 sessions per batch, 1 second between batches, at most 2,000,000 sessions per run | | AI Test evaluation results | 03:30 daily | 100 runs per batch, 1 second between batches, at most 100,000 runs per run | > **📝 Note:** Shortening a period deletes nothing immediately. The effect appears after the next night's run. If the change exposes a large backlog, the per-run cap means it is cleared over several consecutive nights rather than in one pass, so the Conversations page can keep showing data you expected to be gone the following morning. --- ## Example: keeping conversations for six months and traces for two weeks A tenant runs a support assistant. Conversations are analysed monthly, so they need six months of history, but the tool-call and HTTP traces are only ever looked at while a defect is being chased, which is over within days. The host administrator opens the tenant's Features dialog, selects **Data Retention**, and sets: - **Enable retention:** ticked - **Automatically delete sessions older than** `6` **months** - **Automatically delete execution details older than** `14` **days** - **Automatically delete AI Test evaluation results older than** `14` **days** The shorter-than check passes: 6 x 30 = 180, and 14 is comfortably below it. On save, nothing happens yet. At 02:00 the next night, sessions older than six months start being deleted with their messages, ratings, recognitions, insight values and custom attribute values. At 03:00, the execution details of conversations older than fourteen days are removed while those conversations stay readable. At 03:30, AI Test runs older than fourteen days go, along with the conversations their simulations produced. Had the same administrator instead set sessions to `3` and execution details to `90`, the save would have been refused with *"Execution details retention must be shorter than session retention."*, because 3 months converts to exactly 90 days and the value has to be strictly under it. `89` is accepted. --- ## Limits and rules | Rule | Value | | --- | --- | | Enable retention default | Off, on every edition | | Scope | Whole tenant; no per project, channel or conversation override | | Host data | Never deleted by these jobs; they run per tenant only | | Session retention | 1 to 120 months, default 12 | | Execution detail retention | 1 to 90 days, default 30 | | AI Test evaluation result retention | 1 to 90 days, default 30 | | Month to day conversion used by the shorter-than check | 1 month = 30 days, flat | | Shorter-than comparison | Strictly less than, so 3 months allows at most 89 days | | Input format | Number box, digits only, out-of-range values pulled back to the nearest allowed number | | Fields while Enable retention is off | Disabled | | Recovery after deletion | None; every deletion is permanent | --- ## Daily Conversation Reports **Daily Conversation Reports** is a separate feature group in the same dialog, with its own toggles. It ages out the generated daily files rather than conversation data, and it is not affected by **Enable retention**. | Setting | What it deletes | Unit | Range | Default | | --- | --- | --- | --- | --- | | Enable daily conversation reports | The switch for the daily report files | Toggle | On or off | Off | | Automatically delete the daily reports (month) | Generated daily conversation report files | Months | 1 to 3 | 1 | | Enable daily conversation audio recordings | The switch for the daily audio recording files | Toggle | On or off | Off | | Automatically delete the daily audio recordings (days) | Generated daily audio recording files | Days | 1 to 7 | 3 | Both toggles are off by default. The clean-up runs at 02:00 daily, in the same job that generates the day's reports, so the files are produced and the expired ones removed in one pass.