Data Retention Under GDPR: How Long to Keep Personal Data

How to set a retention period for each kind of personal data, when a tax or employment law decides the period for you, and what to do when the period ends.

Published by CookieSentryHow we write

Art. 5(1)(e) GDPR Statutory periods come first Delete or anonymise at the end

A retention schedule in six steps

  1. Step 1

    List the data categories. Per processing activity in your ROPA: invoices, delivery addresses, newsletter list, job applications, employee files.

  2. Step 2

    Name the reason for keeping each one. The purpose and its lawful basis: a contract, a legal obligation, consent.

  3. Step 3

    Check for a statutory period. If a tax, accounting or employment law says how long to keep it, that period applies (Art. 6(1)(c)).

  4. Step 4

    Otherwise set your own period and trigger. As short as the purpose allows, starting from a clear event.

  5. Step 5

    Decide how it ends. Delete, remove the identifying fields, or anonymise. Name who makes sure it happens.

  6. Step 6

    Write it down and review it. In the ROPA, in the privacy notice, and on a fixed review date (Recital 39).

The rule: no longer than necessary

Article 5(1)(e) GDPR: personal data must be kept in a form that identifies people for no longer than is necessary for the purposes it is processed for. The period follows from the purpose. Once the purpose is met, the data goes, unless another purpose with its own lawful basis covers it. Keeping data in case it is useful later is not a purpose.

The GDPR does not give periods. It asks you to set them and to be able to show why (Art. 5(2)). Recital 39 says you should set time limits for erasure or for a periodic review. Article 25(2) applies data protection by default to the storage period too.

Longer storage is allowed only for archiving in the public interest, research or statistics, with safeguards under Article 89(1). Breaching Article 5 can lead to fines of up to €20 million or 4% of worldwide annual turnover, whichever is higher (Art. 83(5)(a)).

Set a period and a trigger per data category

One processing activity usually holds data with different reasons to keep it. In an online shop, the invoice must stay for the statutory tax period. The delivery address is needed until the order is delivered and any return or warranty claim is settled. The newsletter address stays until the person unsubscribes (Art. 7(3)). One period for the whole activity keeps some data too long or deletes some too early.

Each period needs a start, so name the trigger. Three kinds cover most cases:

An event

Account closed, contract ended, employment ended, order delivered.

A calendar date

The end of the year in which the invoice was issued. German and Polish tax and accounting periods count this way.

A change of status

Consent withdrawn, objection received, customer inactive for the period you set.

After consent is withdrawn, keep only what you need to show that consent was given and when it ended (Art. 7(1)), not the marketing data itself.

When a law sets the period

If a law requires you to keep data, keeping it is lawful under Article 6(1)(c), and the right to erasure does not override it (Art. 17(3)(b)). The obligation covers the records the law names, not everything else you hold about the person. Every EU country has its own tax, accounting and employment rules; check yours. Two examples from the official texts:

CountryProvisionRule
GermanyHGB § 257(4), (5)Books, inventories, annual financial statements: 10 years. Accounting vouchers (Buchungsbelege): 8 years. Business letters received and sent: 6 years. Counted from the end of the calendar year of the last entry, document or letter. Applies to merchants (Kaufleute).
GermanyAO § 147(3), (4)The same 10 / 8 / 6 years for tax records, also counted from the end of the calendar year. The period does not end while the records still matter for a tax whose assessment period is open.
PolandOrdynacja podatkowa Art. 86 § 1, Art. 70 § 1Tax books and related documents: until the tax liability is time-barred, which is 5 years from the end of the calendar year in which the payment deadline passed, unless tax laws say otherwise.
PolandKodeks pracy Art. 94 point 9bEmployee files: for the employment and 10 years from the end of the calendar year in which it ended, unless other laws require longer.

Sector laws (finance, health, regulated professions) can add their own periods. In the schedule, name the law and article for each statutory period, so anyone can check it against the current text.

When the period ends: delete or anonymise

When data is no longer needed, the person can ask for it to be erased (Art. 17(1)(a)), but you should not wait for the request. The schedule names one way to end each category:

Delete

Remove the record from live systems. The default when nothing about the record needs to be kept.

Remove the identifying fields

Where the rest of the record must stay, for example an order that the tax law requires, clear the name, email and address that the law does not require. Replacing them with a code you can look up again is pseudonymisation, and the data stays personal.

Anonymise

Keep only totals or statistics that cannot be traced back to a person. Anonymous data is outside the GDPR (Recital 26).

Anonymisation has a high bar. The Article 29 Working Party (Opinion 05/2014) sets three tests: nobody can single out a person, link records about the same person, or infer information about them. Removing names alone rarely passes. Pseudonymised data is still personal data (Recital 26, Art. 4(5); EDPB Guidelines 01/2025), so the retention period still applies to it. Keep a short log of what was deleted and when; it is how you show the schedule runs (Art. 5(2)).

Document the schedule

The schedule lives in two places. Your record of processing activities must state, where possible, the time limits for erasure of each data category (Art. 30(1)(f)). Your privacy notice must tell people how long their data is kept, or the criteria used to decide (Art. 13(2)(a), Art. 14(2)(a)). Keep the two consistent. One row per data category covers it:

Processing activityThe ROPA entry the row belongs to.
Data categoryInvoices, delivery addresses, consent records, support emails.
Reason and lawful basisWhy you keep it, and the Art. 6(1) basis.
Statutory provisionThe law and article, if a law sets the period.
Period and triggerHow long, and the event or date it counts from.
End of periodDelete, remove identifying fields, or anonymise.
OwnerThe person who makes sure it happens.

Frequently asked questions

A customer asks us to delete everything, but we must keep the invoices. What now?+

The right to erasure does not cover data you must keep under a legal obligation (Art. 17(3)(b)). Delete the rest, keep the invoice data for the statutory period, and tell the customer within one month what you kept and why (Art. 12(3), (4)).

Does the GDPR set fixed retention periods?+

No. Fixed periods come from national laws. Where you cannot name a fixed period, the privacy notice gives the criteria you use to decide it instead (Art. 13(2)(a)).

Do backups follow the same rules?+

Yes. Storing data is processing (Art. 4(2)), so backups are in scope. Set how long each backup is kept and let old backups expire on that cycle. If you restore a backup, delete again the data that had already been deleted before you use the restored system.

We have fewer than 250 employees. Do we still need a written schedule?+

Usually yes. The ROPA exemption in Article 30(5) does not apply when the processing is not occasional, and regular customer or employee processing is not. Either way, the privacy notice must state the periods (Art. 13(2)(a)).

The schedule, written for your processing

The CookieSentry Data Retention Policy sets a period, a trigger and a deletion method per data category, with the statutory drivers for your country. It is in the Pro pack, with the Privacy Policy, Cookie Policy and ROPA, and in the Enterprise pack, which adds the DPA and Breach Procedure.

See the document packs

Pay only after you preview every document. No subscription.

Sources

Updated

This guide summarises GDPR Articles 4, 5, 6, 7, 12, 13, 14, 17, 25, 30 and 83, Recitals 26 and 39, the guidance and the German and Polish statutes listed above. It is a practical reference, not legal advice; the periods that apply to your records depend on your country, sector and facts that counsel familiar with your jurisdiction can assess.