Retention and deletion
This page links the data in your instance to its storage, retention setting, and the mechanism that completes deletion.
In brief
Your organization sets periods, configures purges, and retains evidence of execution. Deletion covers the active database, object storage, backups, logs, and copies held by the providers you enabled.
Who it's for, and when. Whoever settles the retention periods and has to prove a deletion reached everywhere. When writing the retention policy, then at every review.
This page isn't for you if you are handling a single erasure request: the actual step is in Rights of people. This page sets the periods that apply to everyone.
Identify every retention location
| Category | Location in your deployment | Retention setting |
|---|---|---|
| Accounts, members, workspaces, conversations, messages, and configuration | PostgreSQL designated by DATABASE_URL | Period defined by your policy and application procedures |
Conversation events in conv_events | PostgreSQL | The conv_events_purge(older_than_days) function purges old events from completed conversations; it accepts your threshold and your operations team schedules it |
| Vectors and document metadata | PostgreSQL | Lifecycle and deletion of the associated files and document data |
| Uploads and processed files | Main S3-compatible storage | Lifecycle and deletion applied to the selected endpoint and bucket |
| BYOK keys, routes, and connector secrets | PostgreSQL; secrets are encrypted | While the corresponding configuration remains in the database; removal through the relevant UI or API |
| Functional cookies | Browser | Periods described in Cookies and trackers |
| Runtime logs | Your deployment's logging system; copied to PostHog when its token is configured | Platform rotation and retention in the enabled PostHog project |
| EE audit events | PostgreSQL; optional copies to S3 or SIEM | audit_retention_policy.retention_months, initialized to 12 months; an active legal hold suspends the relevant purge |
The EE purge of detailed audit events retains the registries, receipts, segments, chain heads, and anchors that provide evidence for expired periods.
Document deletion across every layer
| Layer | Action to configure | Evidence to retain |
|---|---|---|
| Active database | Run application deletion and verify related records | Query result or functional check |
| Object storage | Verify object deletion and lifecycle rules | Bucket inventory and operation log |
| Replay events | Schedule conv_events_purge() with the selected threshold | Scheduled run and number of purged rows |
| Backups | Wait for the configured window to expire and govern interim restores | Deployed value and restore test |
| EE audit | Apply the monthly policy and identify legal holds | Retention report and list of holds |
| External services | Use the provider's erasure procedure for data already received | Provider ticket, export, or confirmation |
The EE Helm chart ships with pg.backup.retentionPolicy: "30d". The value applied to your cluster, platform snapshots, and any additional copy determine the actual period; record each one separately.
Record the policy of enabled providers
Cutting off a flow stops future transmissions. Data already transmitted remains subject to the policy, project, and contract that your organization holds with the provider.
| Family | Providers or destinations to check | Data involved |
|---|---|---|
| Models and embeddings | Anthropic, OpenAI, Mistral, DeepSeek, xAI, Moonshot AI, Google Gemini, an OpenAI-compatible provider, or a configured gateway | Generation requests, indexed segments, and semantic queries |
| Transcription | AssemblyAI and Gladia | Audio or video attachments |
| Search, connectors, and sandbox | Serper, the fetch_url destination, Composio, Daytona, and Yourtext.Guru | Queries, pages, connector actions, and sandbox operations |
| Communications and observability | SMTP or Resend, PostHog, and ntfy | Emails, events, LLM traces, logs, and alerts |
| EE services | RFC 3161 authorities, SIEM destinations, OIDC provider, Stripe, and Lago | Audit evidence, authentication, and billing |
See Your instance's external services for activation conditions and Transfers outside the EU for zones. Then link the selected period to your Data subject rights procedure.