Data retention

Updated November 24, 2026

Data retention is the practice of deciding how long each category of data is kept, documenting that period and deleting or anonymizing the data when it ends. Under privacy laws such as the GDPR, personal data may be kept only as long as its purpose requires, so a retention policy needs a reason for each period, not only a number.

In short: Data retention covers how long an organization keeps each category of data and what it does when that period ends, which privacy laws tie to the purpose the data was collected for.

How data retention works

Retention starts with an inventory and ends with a deletion job. In between sit a purpose, a period and an owner for each category of data.

The legal rule. The GDPR's storage limitation principle allows personal data to be kept in a form that identifies people for no longer than its purposes require 1. The controller must also be able to demonstrate compliance, which means the reasoning has to be written down 1.

No fixed periods. The ICO notes that the UK GDPR does not set time limits for different types of data 2. Each organization decides and justifies its own periods. Industry norms help as a starting point, such as credit reference agencies keeping consumer credit data for six years, but the ICO says they do not guarantee compliance 2.

The policy. A retention policy or schedule lists the types of record held, what each is used for and how long it is kept 2. The ICO expects standard retention periods wherever possible, and a system that makes sure the periods are followed in practice 2. A small organization with occasional low-risk processing may not need a documented policy 2. It must still review what it holds and delete what it no longer needs 2.

The end of a period. Data past its period is either erased or anonymized 2. Pseudonymized data, such as key-coded records, usually still allows identification and stays in scope 2. Moving data offline is still processing, and deletion from a live system should reach its backups too 2.

What may stay. Some records outlast a relationship. The ICO's own example is a business that keeps enough about a former customer who objected to direct marketing so it can leave that person out of future campaigns 2. That minimal record is how a suppression list works.

Retention is one part of a wider data governance program. It also supports data hygiene, because records past their purpose are often the ones most affected by data decay.

How data retention applies when you use RichAPI

Two retention questions come up with an enrichment API. One is what the vendor keeps, and the other is what the team keeps. RichAPI answers the first on its public pages 34. The second belongs to the team.

Lookup inputs. Names, domains, URLs and emails submitted to the API are processed to run the call and kept in request logs for 30 days for billing and debugging, then purged 4. The security page lists the same 30-day purge for request logs 3.

Results. Results are returned to the customer. Web-scraping endpoints cache results server-side for performance, while contact and company lookups are fetched live 4. A fresh lookup therefore reflects what the source holds at the time of the call, which makes re-checking a stale record a reasonable alternative to keeping it indefinitely.

Logs. Logs are structured and correlation-ID'd, with an automated zero-plaintext-PII policy 4. The security page says API keys, secrets and personal data are removed from logs wherever possible 3.

The team's own copies. Once a result lands in a CRM, sequencer or warehouse, it follows the team's schedule, not the vendor's. Write a period for each destination, tie it to the purpose and run the deletion as a scheduled job. Include exports and spreadsheets, which tend to outlive every policy because no system owns them. Enriched records that have gone untouched for a set period are good candidates for deletion or re-checking, and any PII kept past its purpose is a liability.

Example of a retention schedule for enriched contact data

A B2B services firm enriches leads from its website and builds outbound lists every month. Its CRM holds six years of contacts, and nobody remembers why. The ops lead writes a retention schedule.

List the categories. Each category gets a purpose and a period that the purpose can justify, as the ICO's storage limitation guidance asks 2.

text
category                 purpose                 period                       end action
outbound prospects       first-touch outreach    12 months without reply      delete
inbound leads            follow-up and routing   24 months without activity   delete
customers                contract and support    contract plus legal period   review, then delete
opt-outs and objections  suppression             kept, minimal fields         keep
vendor request logs      billing and debugging   vendor purges at 30 days     none needed

Automate it. A weekly job flags records past their period and deletes them from the CRM and the sequencer. The ICO notes that automated systems can delete information after a set period 2.

Keep the suppression record. Opt-outs stay, reduced to the identifiers needed to exclude the person in future, which matches the ICO's example for direct marketing objections 2.

Check the vendor line. The enrichment API's request logs are purged after 30 days on the vendor side, so the schedule records the fact and assigns no job 3.

Clean the backups. Backups older than the longest period roll off, so deleted records do not survive there 2.

Review once a year. The ops lead checks whether each purpose still applies and whether any period can shrink, since the ICO expects periods to be reviewed and justified over time 2.

Data retention vs data deletion

Retention sets how long data is kept. Deletion is what happens at the end, and the ICO treats anonymization as the alternative to erasure 2.

Data retentionData deletion
What it answersHow long should this data be kept, and why?Is this data gone from every system?
InputPurposes, legal duties, data categoriesRecords past their period or erasure requests
OutputA schedule with periods and ownersErased or anonymized records
Cost driverDeciding and justifying each periodFinding every copy, including backups
Main riskPeriods with no purpose behind themCopies left in tools and backups
Use it whenDesigning or reviewing a data flowA period ends or a person asks
Read the reference →

Frequently asked questions

How long should a company keep personal data?

No longer than its purpose requires. The UK GDPR sets no fixed periods, so each organization chooses and justifies its own, and reviews them 2. A prospect who never replied rarely justifies the same period as a paying customer.

What is a data retention policy?

A document or schedule that lists each type of record, what it is used for and how long it is kept, along with what happens at the end. The ICO expects standard periods wherever possible, backed by a system that applies them 2.

Can opt-out records be kept after deletion?

Yes, in minimal form. The ICO's guidance gives the example of keeping enough information about a person who objected to direct marketing to leave them out of future campaigns 2. Keep only the identifiers needed for that.

How long does RichAPI keep my lookup data?

Lookup inputs are kept in request logs for 30 days for billing and debugging, then purged 4. Contact and company lookups are fetched live, and web-scraping endpoints cache results server-side for performance 4.

The bottom line

Data retention decides how long each category of data is kept and what happens when the period ends. Privacy law ties the period to the purpose 1, and the ICO expects a schedule, regular reviews and deletion that reaches backups 2. RichAPI purges request logs after 30 days 3, so the main retention work sits in the team's own CRM and tools.

Sources

  1. Art. 5 GDPR, Principles relating to processing of personal data, gdpr-info.eu (Regulation (EU) 2016/679)
  2. Principle (e): Storage limitation, Information Commissioner's Office (ICO)
  3. Security at RichAPI, RichAPI
  4. Data transparency, RichAPI

More terms