Skip to main content

Active data

Data typeRetention
DocumentsIndefinite while account exists
MemoriesIndefinite while account exists
Content chunksIndefinite while account exists
ClustersRegenerated on demand
OAuth tokensAccess: 1 hour, Refresh: 30 days

Automatic pruning

Data typeRetention window
MCP request logs90 days
Soft-deleted documents30 days before hard delete

Audit logs

Audit entries have a minimum retention of 1 year. The runtime database role can only INSERT into the audit schema (append-only).

Account deletion

When a user account is deleted:
  • All user data removed via ON DELETE CASCADE foreign keys
  • Covers: documents, folders, memories, clusters, content chunks, OAuth tokens
  • Deletion recorded in the audit log
  • Permanent and irreversible

Backups

  • Hosted (Railway): Automatic daily snapshots
  • Self-hosted: Operator-managed. Recommend daily pg_dump with 30-day rotation