Archiving, Purging & Data Retention
Data grows indefinitely without governance. ServiceNow's Archive and Purge frameworks let you move old records out of active tables and eventually delete them — keeping the instance performing well while meeting compliance retention requirements.
Why Archive and Purge?
A ServiceNow instance that never deletes old data will eventually slow down. Queries scan millions of old resolved incidents. Lists take longer to load. Reports time out. Storage costs increase. Archiving and purging are the tools to manage this growth.
The two processes serve different goals:
- Archiving — move old records from active tables to archive tables. The records still exist and can be searched, but they don't impact active list performance.
- Purging — permanently delete records. Used to enforce compliance retention limits (e.g., "GDPR requires deleting PII after 7 years") or to reclaim storage.
Archive Rules
An Archive Rule (stored in sys_archive) specifies:
- Table — which table to archive from (e.g.,
incident) - Condition — filter for records to archive (e.g., state=Closed AND closed_at older than 2 years)
- Archive table — where records move (automatically named
ar_archive_incidentor similar) - Schedule — when the archive job runs
How Archived Records Work
After archiving, the record no longer appears in standard list views of the source table. To find archived records:
- Navigate to the source table list view → click the Archive toggle in the column header (or use the "Show Archived" button)
- Search the archive table directly:
ar_archive_incident - Archived records are read-only — you cannot reopen an archived incident
Purge Rules
A Purge Rule permanently deletes records. It can target:
- Records in the active table directly (dangerous — records are deleted without archiving first)
- Records in archive tables (safer — archive first, then purge after a longer retention period)
The recommended pattern is: Archive → Purge from archive after retention period. This gives a recovery window between the two operations.
resolved_at > 3 years ago). The record is moved from the active table (incident) to the archive table (ar_archive_incident). It no longer appears in standard list views but remains queryable and retrievable.Archive vs. CMDB Data Manager
There are two separate mechanisms for lifecycle management in ServiceNow, and the exam tests knowing which one to use:
| Feature | Archive/Purge Rules | CMDB Data Manager |
|---|---|---|
| Target | Any ServiceNow table (incidents, changes, etc.) | CMDB CI tables only |
| Actions | Archive (move) or Purge (delete) | Retire, Archive, or Delete CIs |
| CI-specific logic? | No — generic record management | Yes — understands CI relationships and lifecycle stages |
| Use when | Managing ITSM records (incidents, changes) lifecycle | Managing CI record lifecycle in the CMDB |
Common Exam Traps — Archiving, Purging & Retention
- Archiving = move records to archive table (still accessible); NOT deletion
- Purging = permanent deletion; irreversible
- Recommended pattern: Archive first → Purge from archive after retention period
- Archived records are read-only; find them via archive table or "Show Archived" toggle
- Archive Rules = any table; CMDB Data Manager = CI tables only
- Purging from active table skips the archive safety window — avoid unless intentional
Practice Questions
4 questions · Select an answer to see the explanation immediately.
An auditor requests access to an Incident that was closed 3 years ago. The instance has an Archive Rule that archived closed Incidents after 2 years. Can the auditor access the record?
B is correct. Archiving in ServiceNow is NOT deletion. Archived records are moved to a separate archive table (e.g., ar_incident for archived Incidents) but remain accessible. Users can access archived records by: (1) querying the archive table directly, or (2) using the "Show Archived" toggle in list views to include archived records in results. Archiving's purpose is to reduce the active table size for performance while retaining data for compliance and audit purposes. Purging is the irreversible operation — only purged records are truly gone. This distinction is a frequent exam trap.