Data retention policy: how long to keep what your website collects

A data retention policy says what personal data you keep, how long you keep it, why that long, and how it gets deleted. The GDPR sets no fixed periods. It asks you to keep data no longer than you need it for the reason you collected it, to decide that period up front, and to tell people in your privacy notice. For a small website, the whole thing fits on one page: a table with each kind of data, its period, the reason, and who deletes it.
If your site takes forms, sign-ups, orders or accounts, this is for you. You’ll get the rule, a table of periods for what a website collects, a template, the settings in common tools, the US and UK angle, an assistant prompt and a phone check.
What a data retention policy is, and who needs one
There are two documents here, and people mix them up. The policy is internal: each kind of personal data you hold, how long you keep it, why, and who deletes it. The retention statement is public. It sits in your privacy notice and tells visitors the period, or how you decide it. You write the policy first and copy the short version out.
Who needs one written down? The GDPR asks you to be able to demonstrate compliance
with its principles (Article 5(2)). The ICO puts it plainly in its storage limitation guidance: You need a policy setting standard retention periods wherever possible, to comply with documentation requirements.
There’s a small-company line too, and it’s on the ICO’s own page: If you are a small organisation undertaking occasional low-risk processing, you may not need a documented retention policy.
The very next sentence says you must still review what you hold regularly and delete or anonymise what you no longer need. Your privacy notice still has to give the periods too. Honestly, by the time you’ve worked those out, you’ve written most of the policy anyway.
Data retention under the GDPR: the rule in plain words
The core is Article 5(1)(e), the storage limitation principle. Personal data that can identify someone must be kept for no longer than is necessary for the purposes for which the personal data are processed
(Article 5). Archiving in the public interest, research and statistics can go longer, with safeguards.
Recital 39 adds the practical part. The storage period should be limited to a strict minimum
, and time limits should be established by the controller for erasure or for a periodic review
(recitals). So you either set a date or set a review.
Then you have to say it. When you collect data from someone, Article 13(2)(a) asks you to tell them the period for which the personal data will be stored, or if that is not possible, the criteria used to determine that period
. Article 14 says the same for data you got from somewhere else. If you keep records of processing, Article 30(1)(f) wants the envisaged time limits for erasure in them, where possible. Under 250 people, you’re spared those records unless the processing is risky, not occasional, or involves special category or criminal data. Daily sign-ups are hard to call occasional.
Erasure sits at the far end. Data that’s no longer necessary has to be deleted without undue delay when someone asks (Article 17(1)(a)). The right to be forgotten guide covers the request side.
In January 2026 the CNIL fined Free Mobile €27 million and Free €15 million, mainly over security after an intrusion. Alongside that, it found Free Mobile had retained millions of pieces of data regarding its subscribers without justification for an excessive period of time
, and had not sorted former subscribers’ data (CNIL). During the procedure it started sorting, to keep only what its accounting duties need, for ten years. The CNIL gave it six months to finish.
Data retention periods for what a website collects
Here’s the table. If you scrolled straight down to it, fair enough. “Set by law” rows have a source. “Your choice” rows are starting points I’d defend for a small site, not legal minimums. Pick different numbers if you can say why.
| Data | Suggested period | Why, in short | Law or choice |
|---|---|---|---|
| Contact form messages | 12 months after the conversation ends | Follow-up questions, complaints | Your choice |
| Newsletter subscribers | Until they unsubscribe | Consent ends there | Your choice |
| Unsubscribed addresses | Kept on a suppression list | So you never email them again | Your choice, supported by the ICO’s example |
| Consent records | While you rely on the consent, plus a period to prove it | You must be able to show consent | Your choice; Article 7(1) asks you to demonstrate it |
| Marketing leads who never bought | 3 years from collection or their last contact | Stale leads aren’t needed | Your choice; the CNIL uses three years |
| Customer accounts | Until closed, plus 30 days | Grace period for mistakes | Your choice |
| Orders and invoices, UK company | 6 years from end of the financial year | Tax and company records | Set by law (GOV.UK) |
| Orders and invoices, Germany | 8 years for vouchers, 10 for books | Tax code | Set by law (§ 147 AO) |
| Orders and invoices, US federal tax | 3 years in most cases | IRS limitation period | Set by law (IRS) |
| Analytics (GA4 user-level data) | 2 or 14 months | The only two standard options | Google’s setting (Google) |
| Server and security logs | 30 to 90 days | Spotting abuse, fixing errors | Your choice |
| Job applications, unsuccessful | Until a claim can no longer be brought | Defend a recruitment claim | Your choice, per the ICO’s example |
| Support tickets | 2 years after closing | Repeat issues, complaints | Your choice |
| Abandoned carts | 30 days | Reminder email, then useless | Your choice |
| Ad and remarketing audiences | Match your cookie consent period | Ends with the consent | Your choice |
The tax rows have more detail than fits in a cell. A UK sole trader keeps records at least 5 years after the 31 January deadline. The IRS lists longer periods in some cases: 6 years if income was under-reported by more than 25%, 7 for a worthless securities or bad debt claim, and at least 4 for employment tax records. States add their own rules, so check with your accountant. Keeping data for a rule like this is fine: the ICO says that if you keep it for a legal requirement, you will not be considered to have kept the information for longer than necessary
.
The tax rule covers the invoice, not the customer’s browsing history, wishlist or the marketing tags on their account. Keep what the accountant needs and clear the rest.
Then backups. The ICO’s line: when it’s right to delete data from a live system, you should also delete it from any back-up of the information on that system.
It accepts that wiping every trace isn’t always possible and asks you to put the data beyond use. For a small company, that usually means deleting from the live system and letting backups roll off on a fixed cycle, say 35 days, written into the policy.
A data retention policy template you can copy
Copy this, fill the brackets, and delete any row you don’t use.
DATA RETENTION POLICY
[Company name], last reviewed [date], next review [date]
1. Scope
Personal data collected through [website address] and the tools
behind it: [forms, email platform, shop, analytics, CRM, hosting].
2. Owner
[Name or role] keeps this policy up to date and checks that
deletion happens.
3. Retention table
| Data | Where it's stored | Period | Reason | Set by law? | How it's deleted |
| Contact form messages | [tool] | 12 months after last reply | follow-up, complaints | No | Manual, quarterly |
| Newsletter subscribers | [tool] | until unsubscribe | consent | No | Automatic |
| Suppression list | [tool] | indefinitely, email only | stop future emails | No | n/a |
| Orders and invoices | [tool] | [period from your tax rules] | tax and accounts | Yes | Scheduled review |
| Analytics | [tool] | [2 or 14] months | site statistics | No | Automatic setting |
| Server logs | [host] | [30] days | security, errors | No | Log rotation |
4. How deletion happens
Automatic where the tool allows it. Everything else is reviewed
on [first Monday of each quarter] and deleted or anonymised.
5. Backups
Backups are kept for [35] days and overwritten on that cycle.
Data deleted from live systems is gone from backups after it.
6. Legal holds
If a claim, complaint or investigation is open or expected,
related records are kept until it is resolved, then this table
applies again.
7. Requests
A deletion request is handled within one month, whatever the
period above says, unless a legal duty requires us to keep it.
The privacy notice gets the short version. Two examples.
A newsletter site: “We keep your email address while you’re subscribed. When you unsubscribe, we delete your details and keep only your email address on a do-not-send list, so we don’t email you again. Website statistics are kept for 14 months, then deleted automatically.”
A small shop: “We keep order and invoice records for 6 years after the end of our financial year, because tax law requires it. Your account stays until you close it, and we delete it 30 days after that. Messages from our contact form are deleted 12 months after our last reply.”
Setting the periods in the tools you already use
A policy that only lives in a document drifts. Put the numbers into the tools so deletion happens without you.
Google Analytics 4
Google’s path: Admin, then in the property column, Data Settings, then Data Retention. For a standard property, user-level data can be kept 2 months or 14 months. Age, gender and interest data always stop at 2 months. Two things are easy to miss. The setting only affects explorations and funnel reports, not the standard aggregated reports. Google’s page doesn’t say whether what stays in those reports can still point to a person. I don’t know either, so I’d word the notice around what the setting deletes and no more. And the “Reset on new activity” switch restarts a returning visitor’s clock every time they come back, so a regular visitor’s identifier may never reach the end of the period.
WordPress and form plugins
Check whether your form plugin saves a copy of every entry in the database as well as emailing it to you. If it does, open its settings, look for an entries or storage option, and switch it off or set an auto-delete period that matches your table. WordPress itself has had an Erase Personal Data tool under Tools since version 4.9.6, for individual requests.
Email platforms
Check what your email tool does with someone who unsubscribes. If they stay a full contact, with name and history, find the delete option for unsubscribed and bounced contacts and keep only the address on the suppression list. The ICO’s own example backs this up: a business told to stop marketing can keep enough information about the former customer
to leave them out of future campaigns.
Shopify
In the admin, open Customers, pick the customer, then More actions and Erase personal data. Shopify’s help page says it erases details such as name and address, while what was sold and when stays visible for your records. You have 10 days to cancel the request. Shopify also says it’s on you to contact any other company you shared the data with.
Server logs
Your host rotates logs on its own schedule. Find it in the hosting panel or ask support, and match it to your table. On your own server, the log rotation settings decide how many days you keep. Thirty is plenty for most small sites.
In the US, the UK and the EU
United States: California says it out loud
Under the CCPA, a business’s notice at collection has to give The length of time the business intends to retain each category of personal information
, or the criteria used to decide it, and it may not keep data longer than reasonably necessary for each disclosed purpose (Cal. Civ. Code 1798.100(a)(3)). Subsection (c) adds that collection, use, retention and sharing must be reasonably necessary and proportionate
. The regulations repeat it in 11 CCR 7012(e)(4). The US-05 article covers sign-up forms.
United Kingdom: same text, ICO guidance
The UK GDPR keeps the same storage limitation principle and the same Article 13(2)(a) wording on periods or criteria. The ICO’s guidance says The UK GDPR does not set specific time limits for different types of data.
It also warns against keeping data indefinitely ‘just in case’
. The UK-07 article lists what a UK notice has to include.
European Union: as above
Everything in the GDPR section applies, and national authorities add benchmarks. The CNIL pointed out in a May 2025 decision that prospect data may be kept three years from collection or the prospect’s last contact, and that this contact cannot simply be the opening of an e-mail
(CNIL). The EU-08 article covers the notice side.
Build order and a prompt for your data retention policy
Do it in this order.
- List every place your website sends personal data: forms, email tool, analytics, payments, CRM, chat, logs, backups. Your processor agreements are a good checklist.
- For each one, write why you keep it and when it stops being useful.
- Check whether a law sets a minimum, usually tax or accounting. Ask your accountant for the local numbers.
- Write the table.
- Set the periods in each tool, as in the section above.
- Copy the short version into your privacy notice.
- Put a review date in your calendar, six or twelve months out.
If you’d like an assistant to draft it, paste this with your own list.
Here is a list of the personal data my website and business collect,
where each is stored, and what I use it for:
[paste your list]
Draft a one-page data retention policy for a small company under the
GDPR (and the UK GDPR or the CCPA if I say they apply). Include a
table with each data type, a retention period, the reason, and how it
gets deleted (automatic setting, scheduled review or manual). Mark
which periods are set by law and which are my choice, and flag
anything you're unsure of. Don't invent tax or accounting periods:
leave them as [check with accountant] unless I've given them.
Then write a short retention section for my privacy notice that
matches the table, in plain sentences, giving a period or the
criteria for each kind of data. Avoid "as long as necessary" on its
own.
The assistant won’t know your local tax periods for certain, so fill those in from your accountant or the tax authority’s own page. If you hold health data, children’s data or anything sensitive, have a lawyer read the result.
Check your own privacy notice with a phone
Ten minutes, no tools.
- Open your site on your phone, find the privacy notice from the footer, and search it for “keep”, “retain” or “how long”.
- For each kind of data your site collects (form messages, subscribers, orders, analytics), check there’s a period or a way of deciding it. “As long as necessary” alone doesn’t count.
- Compare the analytics period in the notice with the setting in GA4.
- Sign up to your own newsletter with a spare address, then unsubscribe.
- Log in to your email tool and search for that address. Is it deleted, or still a full contact with your name and sign-up date?
- Submit your own contact form, then look in your WordPress admin or form tool. Is a copy sitting in the database, and when does it go?
If the retention section is missing or vague, start with the table above and the privacy policy example. The GDPR compliance checklist covers the rest. For the consent records row, the GDPR consent checkbox guide shows what to store when someone ticks the box.
Peeky reads your public privacy notice and sign-up forms. For retention, the checks are EU-08 and UK-07, where he looks for a storage period or the criteria behind it among the required notice items, and US-05, where he looks for how long each category is kept in the notice at collection.
Questions people ask
How long can a company keep my personal data?
There's no single number. Under the GDPR it's as long as the company needs the data for the purpose it collected it for, and no longer. The ICO says the UK GDPR sets no fixed limits. The company has to decide a period, justify it, and tell you in its privacy notice what it is or how it's worked out.
Do you have to keep data for 7 years?
Not personal data in general. Seven years comes from tax and accounting rules, and they differ. A UK limited company keeps its records 6 years from the end of the financial year. The IRS says 3 years in most cases and 7 only for a worthless securities or bad debt claim. Those periods cover invoices and books, not your newsletter list.
What is the retention period under the GDPR?
The GDPR doesn't set one. Article 5(1)(e) says data can be kept no longer than necessary for its purposes, and Recital 39 asks the controller to set time limits for erasure or periodic review. You pick the period per kind of data and state it, or the criteria behind it, in your privacy notice under Article 13(2)(a).
Does a small business need a data retention policy?
Usually, yes, though it can be one page. The ICO says a small organisation doing occasional low-risk processing may not need a documented policy. It still has to review what it holds and delete what it no longer needs, and its privacy notice still has to give the periods. Most sites with a shop or a mailing list process more than occasionally.
Do backups count?
Yes. The ICO says that if it's right to delete data from a live system, you should also delete it from any backup of that system. It accepts that wiping every trace isn't always possible and asks you to put the data beyond use. Most small companies handle this by letting backups expire on a short, fixed cycle and saying so.
Filed with
In the Casebook
- Privacy policy example for a small company website, section by section
- Right to be forgotten: what it means for a small company's website
- GDPR compliance checklist for your website: 15 things a visitor can see
- Data processing agreement: what it is and which of your tools need one
- GDPR consent checkbox: when your form needs one and how to word it
In the Handbook
