Data Archival & Retention
Manage data retention policies, archive old submissions, and clean up notification records
Data Archival Overview
The Data Archival system helps you manage data retention in compliance with GDPR and organisational policies. It allows you to archive old submissions, clean up audit logs, and remove outdated notification records. Access via Admin > Data Archival (Head Office only).
Default Retention Policies
| Data Type | Default Retention | Notes |
|---|---|---|
| Funding Submissions | 24 months after export | Only exported submissions are eligible |
| Audit Logs | 36 months | System activity records |
| Notifications | 12 months | Sent notification records |
Archival Summary Dashboard
The Data Archival page shows:
- Eligible Submissions - Count of submissions meeting archival criteria
- Eligible Audit Logs - Count of old audit records
- Eligible Notifications - Count of outdated notification records
- Last Archival Date - When each type was last archived
Manual Archival
You can trigger archival jobs manually:
Archive Submissions
- Click 'Archive Submissions'
- The system queues a background job
- Check Hangfire dashboard for progress
Archived submissions are soft-deleted (marked with IsArchived flag) and excluded from normal queries.
Archive Audit Logs
- Click 'Archive Audit Logs'
- Old audit records are permanently deleted
- This is irreversible - ensure compliance with your retention policy
Cleanup Notifications
- Click 'Cleanup Notifications'
- Old notification records are permanently deleted
- Does not affect notification templates or settings
Run Full Archival
- Click 'Run All Archival'
- Executes all three archival operations in sequence
- Recommended for monthly maintenance
Scheduled Archival
The system runs automatic archival on the 1st of each month at 3:00 AM UTC. This includes:
- Archiving eligible submissions
- Deleting old audit logs
- Cleaning up old notifications
Monitoring Progress
Archival jobs run as background tasks:
- Go to Admin > Hangfire Dashboard
- Click 'Jobs' > 'Succeeded' or 'Processing'
- Find archival jobs by name (e.g., 'ArchiveOldSubmissionsAsync')
- View execution time and any errors
What Happens to Archived Data
- Submissions - Soft-deleted (can be restored if needed by developers)
- Audit Logs - Permanently deleted
- Notifications - Permanently deleted
Important: Audit log and notification deletion is permanent. Ensure your retention policy compliance before running these operations. Consider exporting audit logs before archival if required for compliance.
GDPR Note: The default retention periods are designed to balance operational needs with data minimisation principles. Adjust these settings in system configuration if your organisation has different requirements.