Use this when deciding how long data is kept and when it is deleted.
Data Retention
Data retention defines how long each type of data is kept for legal, business and privacy reasons and when it is deleted. Keeping data longer than needed increases breach impact and GDPR risk.
1. Retention: keep data only as long as needed (GDPR storage limitation).
2. Automate deletion.
3. Legal holds override.
4. Include backups and archives.
5. Document.
data age → retention rule → delete/archive
Context & applicabilityCommon mistakes · platform/version boundaries
- Keeping everything forever "just in case", increasing breach impact and GDPR risk.
- Retention set in policy but not implemented in systems.
- Backups and archives ignored when deleting data.
- Legal holds not overriding automated deletion.
Operational reference
Fast context before you go deeper.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Legal, business and privacy needs set retention.
- Longer retention increases breach impact.
- Deletion must actually happen.
- Retention schedule per data type — policy
- Automated deletion jobs — enforcement
- Legal hold process — exceptions
ReferenceWhy it matters1 section · depth on demand
Setting retention
1. List data types and their legal requirements (for example bookkeeping 5 years in Denmark, logs per policy).
2. Set retention per type, with the reason.
3. Automate deletion (retention labels, lifecycle rules).
4. Handle legal holds that pause deletion.
Keeping data "just in case" increases breach impact and conflicts with GDPR storage limitation.
ReferenceImportant terms & boundaries2 sections · depth on demand
Example retention rules
| Data | Retention | Basis |
|---|---|---|
| Accounting records | 5 years | Danish Bookkeeping Act |
| Job applications (rejected) | 6 months | Datatilsynet guidance |
| CCTV recordings | 30 days | Danish TV surveillance rules |
| Security logs | 1 year | Internal policy / NIS2 risk measures |
Examples only — confirm with legal counsel for your sector.
In depth
Data retention defines how long each type of data is kept and what happens at the end: deletion, anonymisation or archiving. Keeping data too briefly can break legal obligations; keeping it too long increases breach impact and violates privacy rules such as GDPR's storage limitation principle.
Building a retention schedule:
| Data type | Retention driver |
|---|---|
| Accounting records | Bookkeeping law (often 5 years) |
| HR records | Employment law |
| Logs | Security needs vs privacy |
| Customer data | Contract duration + legal period |
| Backups | Recovery needs; they contain deleted data too |
Automate deletion where possible (lifecycle policies, retention labels), and remember backups and archives when deleting data under a legal obligation.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Data Security → Data Retention. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://csrc.nist.gov/pubs/sp/800/209/final · confidence 94%