AI tools helped gather research and write the first draft of this article. I edited it and checked every quote and figure against the source page listed at the end, read on 1 December 2026. The cover illustration is AI-generated. Details at the end.
A chat that remembers nothing makes users repeat themselves. A chat that remembers everything keeps things nobody meant it to keep, with no end date. Decide what a chat remembers by what each piece of memory is for, give each kind its own scope and its own expiry, and make sure deleting a conversation does not quietly leave its derived memory behind.
This article sorts memory into kinds, reads vendor and framework pages, quotes the GDPR and a regulator on keeping data, walks a fictional example and ends with a template. It is about design choices, not legal advice, and it gives no correct retention period.
Memory is several different things
"The chat remembers" can mean four different mechanisms.
- Thread history. The messages of one conversation. LangGraph's memory overview calls this short-term memory, "or thread-scoped memory", kept as message history within a session [1].
- Long-term memory. Facts or preferences recalled in other conversations. In the same overview it "stores user-specific or application-level data across sessions", scoped to a custom namespace [1].
- Project or workspace memory. In Claude, each project has its own memory, used alongside account memory but "not memory from other projects" [2].
- Logs and application state. Data kept to run the service. OpenAI's API page distinguishes abuse monitoring logs from "application state", data persisted from some API features "in order to fulfill the task or request" [3].
So the first question is not "should the chat have memory?" but "which of these four do we mean, for which information?" A preference for short answers, a half-finished task and last year's complaint should not share a lifetime.
What two vendor memory pages show
These pages describe consumer products and say features vary, so read them as examples of design decisions.
OpenAI's help page lists the sources memory can draw on, depending on plan and region: past chats, saved memories, custom instructions, saved files and content from connected apps. It says memory "does not retain every detail from every conversation" [4]. Anthropic's help page says Claude saves memory "as a set of individual topics as you chat, rather than summarizing conversations after they end", and that you can tell it to "remember this" [2].
Three design decisions show up on both pages.
An off switch that works per conversation. OpenAI says temporary chats "do not create or update memories, even with personalization on" [4]. Anthropic describes incognito chats that are not saved to memory or chat history, and a separate option to turn memory off for a single chat that stays in the history. That choice has to be made before the first message and cannot be changed later [2]. Whether a chat may write to memory is decided at the start.
A visible, editable list. Anthropic says everything Claude remembers is listed under Topics, where each can be read, edited or deleted [2]. OpenAI’s memory summary is "a high-level view" that "does not necessarily include every detail or source that Memory can reference" [4]. An honest interface says what its list does not show.
Sensitive categories handled on purpose. Anthropic says Claude by default does not store topics such as health, race, religious beliefs or politics, offers an opt-in, and says some information "is never saved to memory, even if you ask", naming government ID numbers, criminal history, financial account numbers and immigration status [2]. OpenAI warns that sensitive information can appear in memory if the user shares it [4]. One is a rule the product enforces, the other is advice to the user; a team has to choose.
The deletion gap
Here is the finding that matters most for a builder. Both pages say that deleting a conversation does not, by itself, clear what was remembered from it, in different strengths: OpenAI says "not necessarily", Anthropic says the derived entries are not removed.
OpenAI says: "Deleting a chat alone does not necessarily delete a separate saved memory created from that chat", and lists the places to clear: the memory summary, saved memories, chats, saved files and connected apps. Deletion can take time to propagate, and OpenAI "may retain logs of deleted saved memories for up to 30 days for safety and debugging purposes" [4]. Anthropic says: "When a conversation is deleted, including under a retention period, memory entries generated from it aren’t removed, but you can delete individual memories while memory is on" [2]. That sentence is in the section for Anthropic's current memory experience; the same page keeps a section for the legacy experience, still used by a small number of Team and Enterprise organisations, which says deleted conversations are removed from its memory synthesis.
Neither page presents this as a defect. Memory is derived data, stored apart from its source chat. Decide it on purpose: when a user deletes a conversation, what happens to the facts extracted from it? Keep them and say so, delete them with the chat, or ask. Not deciding is the option that surprises people later.
Retention rules can reach memory too. Anthropic's page says that if an organization sets a custom retention period covering chats, it also applies to memory (other than project memory): "A memory entry that hasn’t been updated for longer than that period is deleted" [2]. That is a concrete rule you can copy: an age limit measured from the last update, not from the first save.

Four questions for every memory item
Answer these in writing before a chat may keep something.
- Purpose. What does the chat do better because of it? If the answer is "it might be useful", the item is not ready.
- Source and consent. Did the user ask for it to be saved, or did the system infer it? Claude does both [2].
- Scope. One thread, one project, or the whole account? LangGraph's namespaces and Claude's per-project memory are two implementations of the same idea [1][2].
- Expiry and exit. When does it expire, and how does the user correct or delete it?
The legal text points at the first and fourth. Article 5(1)(c) of the GDPR says personal data shall be "adequate, relevant and limited to what is necessary in relation to the purposes for which they are processed" (data minimisation). Article 5(1)(e) says data shall be "kept in a form which permits identification of data subjects for no longer than is necessary for the purposes for which the personal data are processed" [5]: the storage limitation principle, with exceptions for archiving, research and statistics. Article 17(1)(a) gives a person the right to erasure where the data "are no longer necessary in relation to the purposes for which they were collected or otherwise processed" [5]. Whether these apply to a given chat product depends on the facts, the place and the operator's role; this article does not decide that.
A fictional example
The following example is invented. Ledgerly is a made-up assistant inside a portfolio-tracking app for crypto and game assets; its items, rules and numbers are fictional and show the format.
A user chats with Ledgerly over several weeks. The team writes down what each kind of item gets:
| Item the user mentions | Remember? | Scope | Expiry (invented) |
|---|---|---|---|
| "Keep answers short, and in Spanish" | Yes, as a setting the user can see | Account | Until the user changes it |
| "I am comparing two swaps right now" | Yes, to continue the task | One thread | 7 days after the last message |
| "I am cautious, I do not like leverage" | Yes, with its date | Account | Ask again after 12 months |
| A wallet address pasted to ask about it | Not in memory; the user can pin it in a saved list | None | Not applicable |
| A recovery phrase pasted by mistake | Never; blocked before any write | None | Not applicable |
| "I lost money last year and I am stressed" | No, by default; opt-in only | None | Not applicable |
| A support complaint about a failed transfer | Kept in the support record, not in chat memory | Support case | Until the case is closed, plus a set review period |
Every row answers all four questions, and several answers are "no". A recovery phrase in memory is a liability, so the rule is "never write it", not "store it carefully". Anthropic’s help page lists financial account numbers as never saved [2], but a team building on the memory tool has to enforce its own rule: that page says Claude "usually refuses to write sensitive information to memory files" and advises validation that strips sensitive data before the handler writes the file [6].
The user’s side: Ledgerly lists the account-level rows in settings, editable and deletable, and says there that deleting a chat does not delete them. Asking again after twelve months is a design choice: a stated risk preference can go stale, and the date lets the chat ask instead of assuming.
Retention: what the sources do and do not say
No source cited here gives the right number of days. That is the honest finding.
The UK regulator’s guidance says the UK GDPR "does not dictate how long you should keep personal data", that it is up to the organisation to justify the period based on its purposes, and that data should not be kept "indefinitely ‘just in case’". It says to have a policy with standard retention periods where possible, to review data periodically, and to erase or anonymise what is no longer needed [7]. The page carries a notice that it is under review because of changes made by the Data (Use and Access) Act, so check it again before relying on it.
Vendor numbers describe their own operations. OpenAI’s API page says abuse monitoring logs are retained for up to 30 days by default unless longer retention is required by law or reasonably necessary to protect services from harm, and lists some conversation endpoints as stored "until deleted" [3]. The 30-day figures on the help pages describe how long deleted or removed data may linger, or a minimum safety hold, not a target for a product [2][4]. None is a recommendation for your product.
What the sources do give is mechanisms. LangSmith’s TTL guide says LangSmith persists both checkpoints (thread state) and cross-thread memories, and that time-to-live policies manage their lifecycle "preventing indefinite accumulation". The two are set separately; its examples use 30 days for checkpoints and 7 days for store items, and without a TTL data does not expire by default. A store item’s timer resets on read unless turned off, and a new default applies only to items created afterwards, so older items must be cleared by hand [8]. Anthropic’s memory tool page advises capping file sizes and to "periodically delete memory files that haven’t been accessed in a long time" [6].

Remembering wrongly is also a retention problem
Article 5(1)(d) asks that personal data be "accurate and, where necessary, kept up to date", with inaccurate data erased or rectified "without delay" [5]. A chat that acts on an old preference is making a memory error even if the data is stored lawfully. OpenAI distinguishes "Don’t mention this again", which "reduces future references to the information" but "does not delete the original source", from deleting the item [4]. If your product offers a "stop using this" action, say what it does and does not remove.
Four mistakes and fixes
1. One store for everything. Task drafts, preferences and support history share one table and one lifetime. Fix: separate by scope, one rule each.
2. Saving because it might help. Nobody can say what the item is for. Fix: no purpose, no write.
3. Delete that leaves derived data. The chat is gone, the summary built from it is not, and the interface does not say so. Fix: decide the behaviour and show it where the user deletes.
4. No expiry, no review. The store only grows, which a TTL exists to prevent [8]. Fix: an expiry per class, measured from last update or use, plus a periodic sweep.
A template to copy
For each kind of memory your chat can write, one row with: the kind and an example; why it is kept; who decided (user or system); scope (thread, project, account); expiry, and whether reads refresh it; user controls and what each removes; categories never stored; and what happens to derived items when the source chat is deleted.
What this article cannot tell you
It cannot tell you how long to keep any item; no cited page gives a recommended period. It does not say whether the GDPR or any other law applies to your chat. It describes only what help pages state, not how any vendor builds memory, and no memory feature was run for this article. The example is invented and the table is a proposal. The sources describe features and guidance, not measured outcomes: none shows that a given retention rule makes users safer or happier.
How this article was made
| Task | What the AI did | What a person did | How it was checked |
|---|---|---|---|
| Research | Gathered candidate sources and drafted notes | Chose the question and which pages to rely on | Every quote checked against the page text downloaded on 1 December 2026 |
| Draft | Wrote the first draft from the notes | Edited the text, the example and the table | An independent review compares claims with the sources before publication |
| Images | Generated the cover illustration and inline images | Chose and checked them | Labelled as AI-generated in the disclosure line and alt text |
| Not done by AI | — | The decision to publish and responsibility for the text | — |
Conflicts of interest: none. The author has no commercial relationship with the organisations named here.
Responsible for this article: Dmitriy Lastovka, author. Corrections: contact form.
Sources
Quotes are as on the pages read on 1 December 2026.
- LangChain, "Memory overview" (LangGraph conceptual guide). https://docs.langchain.com/oss/python/concepts/memory Documentation.
- Anthropic, Claude Help Center, "Use Claude’s chat search and memory to build on previous context". https://support.claude.com/en/articles/11817273-use-claude-s-chat-search-and-memory-to-build-on-previous-context Documentation.
- OpenAI, API docs, "Data controls in the OpenAI platform". https://platform.openai.com/docs/guides/your-data Documentation.
- OpenAI, Help Center, "Memory in ChatGPT". https://help.openai.com/en/articles/8590148-memory-faq Documentation.
- Regulation (EU) 2016/679 (GDPR), Articles 5 and 17, on EUR-Lex. https://eur-lex.europa.eu/legal-content/EN/TXT/HTML/?uri=CELEX:32016R0679 Law.
- Anthropic, Claude Platform docs, "Memory tool". https://platform.claude.com/docs/en/agents-and-tools/tool-use/memory-tool Documentation.
- UK Information Commissioner’s Office, "Principle (e): Storage limitation". https://ico.org.uk/for-organisations/uk-gdpr-guidance-and-resources/data-protection-principles/a-guide-to-the-data-protection-principles/storage-limitation/ Guidance; carries a review notice.
- LangChain, "How to add TTLs to your application" (LangSmith docs). https://docs.langchain.com/langsmith/configure-ttl Documentation.










