# Data retention

> Data retention is the set of rules deciding how long a system keeps each kind of data, such as chat logs, recordings, prompts and documents, and when it deletes or anonymises them, balancing legal duties, business needs and privacy.

Also called: retention policy, data deletion, zero data retention, log retention, record retention. Category: Data and retrieval. Source: https://aibuildindex.com/glossary/data-retention

Every AI system generates data that piles up quietly: conversation transcripts, call recordings, uploaded files, embeddings in a search index, prompts and responses in logs, copies held by model providers. Data retention is the policy, and the mechanism, that decides how long each of these is kept and how it is removed. Keeping everything forever looks safe but raises privacy risk, storage costs and the damage from any breach. Deleting too soon can break audits, investigations and model improvement. This entry is general information, not legal advice.

## In practice

A sound retention design answers three questions for each type of data: why it is kept, for how long, and how it is deleted.

- **Legal requirements.** Some records must be kept for set periods, such as financial records or certain health and employment records, which vary by country and sector. Data protection laws such as the [GDPR](https://aibuildindex.com/glossary/gdpr) require that [personal data](https://aibuildindex.com/glossary/personal-data) is not kept longer than necessary.
- **Business needs.** Transcripts may be useful for quality review or for building an evaluation set; logs help with debugging and [observability](https://aibuildindex.com/glossary/observability).
- **Third parties.** Model providers, transcription services and automation platforms each have their own retention settings. Many business and API offerings retain inputs for a limited period for abuse monitoring, and some offer reduced or zero retention for eligible customers. Automation platforms often keep execution histories, including the data passed through each step, until they are pruned.

Deletion has to reach every copy: the main database, file storage, the vector index used for retrieval, backups on their own cycle, analytics tools and logs.

An example: a recruitment assistant keeps candidate CVs and screening notes for an agreed period after a role closes, then deletes them from the database, the file store and the search index automatically, while keeping anonymised statistics for reporting.

## What it means for cost

Retention adds modest but real scope: scheduled deletion jobs, settings on every third-party service, a way to delete a single person's data on request, and documentation of what is kept where. Choosing shorter retention can lower storage costs; requiring zero-retention terms from a model provider can restrict model choice or require a business agreement.

Ask a builder for a list of every place data is stored, the retention period for each, how deletion reaches the search index and backups, and what retention terms apply at the model provider. A system that cannot answer these is hard to defend in an audit.

## Common questions

### Do AI model providers keep the prompts sent to them?

It depends on the provider, product and agreement. Consumer apps and business APIs often have different policies, and many APIs retain inputs only for a limited period and do not use them for training by default. Check the current terms for the exact service used.

### How long should chatbot conversations be kept?

There is no single answer. Keep them as long as there is a clear purpose, such as handling complaints or improving the system, and no longer than data protection rules allow. Many businesses set a fixed period and anonymise transcripts they want to keep for analysis.

## Related terms

- [Personal data (PII)](https://aibuildindex.com/glossary/personal-data): Personal data is any information that relates to an identifiable living person, such as a name, email address, phone number, location or customer ID; in the US it is often called personally identifiable information, or PII, and its handling is governed by data protection law.
- [GDPR](https://aibuildindex.com/glossary/gdpr): The GDPR, or General Data Protection Regulation, is the European Union law that governs how organisations collect, use, store and share personal data about people in the EU, with a closely related UK version applying in the United Kingdom.
- [HIPAA](https://aibuildindex.com/glossary/hipaa): HIPAA, the US Health Insurance Portability and Accountability Act, sets national rules for protecting health information held by healthcare providers, health plans and their service providers, and shapes how any AI system handling patient data must be built and contracted.
- [Access control](https://aibuildindex.com/glossary/access-control): Access control is the set of rules and mechanisms that decide who or what can see, change or act on which data and functions in a system, so that users, staff and AI agents only reach what their role requires.
- [Observability](https://aibuildindex.com/glossary/observability): Observability is the ability to see what a live system is doing and why, through logs, traces and metrics, so that errors, slow responses, rising costs and poor AI outputs can be found and explained.
- [Data residency](https://aibuildindex.com/glossary/data-residency): Data residency is a requirement or commitment that data is stored, and often processed, within a particular country or region, such as the EU, usually to meet legal, contractual or customer expectations about where information is held.
