Data retention

On this page 7

Data retention is the set of rules and practices that determine how long an organization keeps each category of data, for what purpose, in which form and how it is archived or disposed of at the end of that period. In data governance, it is formalized in a retention policy and a retention schedule that balance legal obligations, business value, storage cost and privacy risk.

Retention covers every place where data lives: production databases, data warehouses, data lakes, logs, backups, email and documents. A policy that governs only the primary systems while copies persist elsewhere does not achieve retention in practice.

How data retention works

Data retention works by assigning each record category a retention period, a trigger event that starts the clock and a disposition action that applies when the period ends. The trigger might be the creation date, the end of a contract, the closure of an account or the last activity of a customer.

The lifecycle typically moves data from an active state in operational systems to an archived state in cheaper, restricted storage and finally to deletion or anonymization. Automated jobs apply the rules, while a legal hold can suspend disposal for records relevant to litigation, an audit or an investigation.

The table below lists the elements that a complete retention schedule records for every category.

ElementWhat it specifiesExample
Record categoryClass of data the rule coversCustomer invoices
Legal or business basisWhy the data is keptTax law, contract, analytics
Retention periodHow long it is keptTen years after the fiscal year
Trigger eventWhen the period startsEnd of the fiscal year
Disposition actionWhat happens at the endSecure deletion or anonymization
OwnerWho is accountableData steward for finance
Elements of a retention schedule

Drivers and types of retention requirements

Retention requirements come from two opposite directions. Some rules impose a minimum period, requiring data to be kept for tax, accounting, employment or sector regulations. Others impose a maximum period, requiring data to be deleted once it is no longer needed, most notably the storage limitation principle of the GDPR.

DriverDirectionTypical effect
Tax and accounting lawMinimumFinancial records kept for several years
Privacy regulationMaximumPersonal data deleted when the purpose ends
Sector regulationMinimumTrading, health or telecom records kept longer
ContractsEitherCustomer agreements may require deletion or retention
Litigation and auditsSuspends deletionLegal hold overrides the normal schedule
Business valueUsually longerHistorical data for trends and models
Sources of retention requirements

Periods vary widely by jurisdiction and record type, from days for raw access logs to decades for certain medical or pension records. Because the specific numbers depend on local law, retention schedules are normally drafted with legal counsel and reviewed whenever regulations or business purposes change.

Data retention depends on other governance practices and is often confused with backup and archiving. The comparison below separates the concepts that a governance program must coordinate.

PracticeMain questionRelation to retention
Data retentionHow long is data kept and whyDefines periods and disposal
Data classificationHow sensitive is this dataDetermines which rules apply
Data catalogWhere does this data liveLocates every copy to be governed
Data stewardWho looks after this dataOwns and enforces the schedule
BackupCan data be restored after lossCopies must expire in line with policy
ArchivingWhere does inactive data goA stage within the retention lifecycle
Retention and neighboring practices

Backups are the most common gap. A record deleted from production may survive in backup snapshots for months, so the retention policy should state backup rotation periods explicitly and accept that deletion is complete only when the last backup containing the record expires.

Implementing data retention in data platforms

Implementation translates the schedule into technical controls in each system. Effective programs automate disposal rather than relying on manual cleanup, and they log every deletion so that compliance can be demonstrated.

MechanismWhere it appliesConsideration
Time-to-live settingsDatabases, caches, message topicsSimple but tied to creation time
Partition expiryData warehouses and lakesDrops whole date partitions efficiently
Object lifecycle rulesCloud object storageMoves to cold tiers, then deletes
Scheduled purge jobsOperational databasesMust handle referential integrity
AnonymizationAnalytics datasetsKeeps aggregates while removing identity
Immutable storage locksRegulated recordsPrevents early deletion or alteration
Technical mechanisms for retention

Anonymization is an alternative to deletion when aggregated history has value, but it must be genuine: pseudonymized data that can be re-linked to individuals usually remains personal data. Derived datasets, extracts in spreadsheets and machine learning training sets also need lineage tracking so that retention rules follow the data downstream.

Risks and common mistakes

Retention fails in two directions. Keeping data too long enlarges the impact of a breach, raises storage cost and can breach privacy law; deleting too early can violate record-keeping obligations or destroy evidence under legal hold.

  • Keeping everything forever by default, which turns old data into liability without measurable business value.
  • Policies without enforcement, where a document exists but no system deletes anything.
  • Forgotten copies in logs, exports, test environments and personal drives.
  • Ignoring legal holds when automated purges run without checking for suspended records.
  • Vague categories such as “customer data” that do not map to concrete tables or files.

A plain-language summary

Data retention is a set of rules about how long information is kept and when it is thrown away. Think of a household. It keeps tax papers for the required years. It keeps a warranty card until the product is gone. It shreds old bank letters once nobody needs them.

Organizations do the same, at a much larger scale. Some data must be kept by law. Some must be deleted by law. The rest should stay only as long as it is genuinely useful. The point is simple: keep what you need, then dispose of it safely.

An example from practice

A mid-sized online retailer discovers during a privacy review that its analytics warehouse holds full customer records going back twelve years, including addresses of people who closed their accounts long ago. The governance team, together with legal counsel, drafts a schedule: invoices are kept for the period required by local tax law, support conversations for three years after the last contact, and web access logs for 90 days.

Data stewards map each category to concrete tables, and engineers implement partition expiry and nightly purge jobs with a legal-hold check. Behavioral history older than three years is anonymized rather than deleted, so long-term sales trends remain available. Within a quarter, the warehouse shrinks substantially, and the retailer can answer deletion requests and audit questions with documented evidence instead of manual searches.