Retention Tab

The data retention system automatically purges old records from the Entity Store on a daily schedule. Without retention, data accumulates indefinitely, which affects performance as large Entity Store tables slow down index queries.

Warning: Purged data cannot be recovered. The Entity Store has no recycle bin. Set retention periods conservatively, especially for evidence-event (audit trail) records.

Retention tab showing the seven entity type rows with numeric day fields and the Save Policy and Run Now buttons

Per-Entity Retention Periods

Each entity type has an independent retention period in days. The minimum value enforced server-side is 7 days.

Entity TypeDisplay LabelDefaultWhat Gets Purged
evidence-eventEvidence Events365 daysAudit trail entries (finding created, case status changed, etc.)
exposure-snapshotExposure Snapshots180 daysPoint-in-time exposure score snapshots for each page
delivery-attemptDelivery Attempts90 daysIn-app notification delivery records
alert-recordAlert Records180 daysTriggered drift alert records
job-runJob Runs90 daysScheduled job execution history
access-cacheAccess Cache7 daysCached group membership and page permission data

When the Purge Job Runs

The purge job runs as a sub-job of the daily maintenance scheduled trigger, typically sometime between midnight and 2 AM UTC. The job:

  1. Loads the retention policy from KVS.
  2. For each entity type, queries entities where CreatedAt < (now - retentionDays).
  3. Deletes matching records in batches of 50.
  4. Returns a summary of deleted counts per type (visible in the job run history in the System tab).