In short
- Definition: The rules defining how long data must be kept, where, and when it must be archived or deleted.
- Goal: Meet legal and business obligations while limiting the cost and risk of keeping data longer than needed.
- Example S.M.A.R.T. requirement: 100% of records past their retention period deleted within 30 days, verified by a quarterly report.
1. Definition
As a non-functional requirement, data retention describes the rules that set how long each type of data must be kept, where, and when it must be archived or deleted [1], [2], [3].
Keeping everything forever is not a retention policy. It is a growing risk and a growing bill.Key takeaway
Retention rules come from several sources: laws and regulations (tax, employment, health, privacy), contracts, litigation holds and business needs. Privacy laws such as the GDPR add the principle of storage limitation: personal data should not be kept longer than necessary for its purpose [4].
A retention requirement therefore works in both directions: keep data long enough, and delete it when the period ends, including in backups and copies.
2. Goal
The goal is to meet legal and business obligations while limiting the cost and risk of keeping data longer than needed.
Data kept too long increases the impact of a breach and storage costs; data deleted too early can mean fines or losing a legal dispute.
3. How to Measure It (S.M.A.R.T.)
| Metric | Unit | Typical target | How to measure |
|---|---|---|---|
| Data types with a defined retention period | % of data types | 100% | Retention schedule review |
| Overdue records deleted | % within 30 days of expiry | 100% | Quarterly retention report |
| Legal holds applied correctly | % of holds | 100% | Legal hold register and system check |
| Deletion in backups | Maximum delay | Within the backup rotation period | Backup policy review |
4. Example Requirements
Each requirement below is ready to copy into a specification: specific, measurable, achievable, relevant and time-bound.
- Customer data: “Personal data of closed customer accounts shall be deleted or anonymized within 30 days after the end of the legal retention period, as shown by a quarterly report.”
- Financial records: “Invoices and accounting records shall be kept for the period required by tax law in each country, and protected against deletion until then.”
- Legal hold: “When a legal hold is set, the system shall suspend deletion of the affected records within 24 hours.”
5. Questions to Ask Stakeholders
- Which laws and contracts set retention periods for each data type?
- When does the retention period start: creation, last activity, contract end?
- Should data be deleted, anonymized or archived at the end?
- How are backups and copies handled?
- Who can place and lift a legal hold?
- How will the business prove that deletion happened?
6. Common Pitfalls
- One period for all data. Different data types have different legal periods. Build a retention schedule per type.
- Forgetting copies. Exports, test environments and backups also hold data subject to retention.
- Deletion that cannot be proven. Log deletions and produce periodic reports as evidence.
7. Related NFRs
- Privacy — privacy laws limit how long personal data may be kept.
- Compliance — many regulations set minimum retention periods.
- Backup — backups must follow the same retention logic.
- Auditability and Control — deletions and legal holds must be traceable.
8. FAQ
A document listing each type of data, how long it must be kept, why, and what happens at the end.
Usually backups expire on their own rotation; the policy should say so and make sure restored data is cleaned again.
If done properly, anonymized data is no longer personal data, so it can often be kept. Pseudonymized data is still personal data.
9. Acronyms, Initialisms & Terms
Acronyms are abbreviations pronounced as words (like NASA); initialisms are spelled out letter by letter (like FBI). The classification below follows common pronunciation.
Acronyms
| Abbreviation | Stands for | Definition | Ref. |
|---|---|---|---|
| SMART | Specific, Measurable, Achievable, Relevant, Time-bound | Criteria for writing a goal or requirement so that anyone can check whether it has been met. | [5] |
Initialisms
| Abbreviation | Stands for | Definition | Ref. |
|---|---|---|---|
| FAQ | Frequently asked questions | List of common questions with their answers. | [6] |
| GDPR | General Data Protection Regulation | European Union law that governs how personal data is collected, used and protected. | [7] |
| NFR | Non-functional requirement | Requirement that describes how well a system must work (its qualities, such as speed or security) rather than what it does. | [3] |
Terms
Plain-language definitions of technical and project-management terms used in this article.
| Term | Plain-language definition | Ref. |
|---|---|---|
| Anonymization | Removing identifying details so data can no longer be linked to a person. | [8] |
| Log | Time-stamped record of events written by software, used for troubleshooting and audit. | [9] |
| Personal data | Any information that relates to an identifiable person. | [10] |
| Pseudonymization | Replacing names and identifiers with codes so data cannot be linked to a person without extra information. | [11] |
| Stakeholder | Person or group with an interest in the system: users, sponsors, operators, regulators. | [12] |
10. Sources and Further Reading
- [1] “Data retention.” Wikipedia. https://en.wikipedia.org/wiki/Data_retention (accessed Nov. 18, 2026).
- [2] “Records management.” Wikipedia. https://en.wikipedia.org/wiki/Records_management (accessed Nov. 18, 2026).
- [3] “Non-functional requirement.” Wikipedia. https://en.wikipedia.org/wiki/Non-functional_requirement (accessed Nov. 18, 2026).
- [4] “Art. 5 GDPR, Principles relating to processing of personal data.” GDPR-Info. https://gdpr-info.eu/art-5-gdpr/ (accessed Nov. 18, 2026).
- [5] “SMART criteria.” Wikipedia. https://en.wikipedia.org/wiki/SMART_criteria (accessed Nov. 19, 2026).
- [6] “FAQ.” Wikipedia. https://en.wikipedia.org/wiki/FAQ (accessed Nov. 19, 2026).
- [7] “General Data Protection Regulation.” Wikipedia. https://en.wikipedia.org/wiki/General_Data_Protection_Regulation (accessed Nov. 19, 2026).
- [8] “Data anonymization.” Wikipedia. https://en.wikipedia.org/wiki/Data_anonymization (accessed Nov. 19, 2026).
- [9] “Logging (computing).” Wikipedia. https://en.wikipedia.org/wiki/Logging_(computing) (accessed Nov. 19, 2026).
- [10] “Personal data.” Wikipedia. https://en.wikipedia.org/wiki/Personal_data (accessed Nov. 19, 2026).
- [11] “Pseudonymization.” Wikipedia. https://en.wikipedia.org/wiki/Pseudonymization (accessed Nov. 19, 2026).
- [12] “Project stakeholder.” Wikipedia. https://en.wikipedia.org/wiki/Project_stakeholder (accessed Nov. 19, 2026).
Written by Philippe Huard · LinkedIn · Last updated: November 18, 2026 · Header photo by @beatriz_perez; inline photo by @qwitka, both on Unsplash.




