Changing Retention Settings

Minimum Retention: 7 Days

The server rejects any retention period below 7 days. The UI enforces min={7} on the input fields as well. This prevents accidental configuration that would purge very recent data.

Updating Retention Periods

  1. Adjust the day values in the numeric fields for each entity type. Values must be 7 or greater.
  2. Click Save Policy.
  3. A success banner confirms “Retention policy updated”.

Manual Purge Trigger

Click Run Now to trigger an immediate purge with the currently saved settings. This calls runRetentionNow and returns a total count of purged records in the success banner. Useful after a bulk import or data migration to clean up old records immediately.

Retention Recommendations

  • Keep evidence-event at 365 days to preserve a full year of audit trail history.
  • The access-cache default of 7 days is appropriate, it is a performance cache, not primary data, and does not need long retention.