Writing

Deleting the chat does not delete what the agent remembers

Agent memory outlives the chat it came from. Retention and erasure have to be settled before memory is switched on; the platforms leave the policy to you.

A user deletes a conversation with an assistant and assumes the matter is closed. In Microsoft 365 Copilot it is not closed, because the memories Copilot saved from that conversation survive the deletion. Microsoft documents this plainly. It is one example of a general problem: agent memory lives outside the conversation, and most of the controls companies rely on were built for the conversation.

Agent memory, in the sense I mean here, is what an agent keeps between sessions: facts about the user, summaries of past work, learned procedures. Every major platform now offers it. AgentCore Memory has been generally available since October 2025. Google’s Agent Platform Memory Bank went GA in December 2025. Memory in Foundry Agent Service is in public preview, and Microsoft 365 Copilot’s memory was still labelled preview on Microsoft Learn as of September 2026. Remembering, though, is a data processing activity with its own retention and deletion obligations, and switching it on creates a new data store that the existing governance may not reach.

The retention gap, in one product

Copilot stores saved memories, details inferred from chat history and custom instructions in a hidden folder of the user’s Exchange mailbox. According to Microsoft’s documentation, Purview retention policies and labels do not apply to that memory. Memory actions produce no Purview audit log entries. Admins cannot restrict what gets remembered. Deleting a chat does not delete the memories created from it. The admin’s route to find and delete a memory is eDiscovery or Graph Explorer, searching for contact items in a folder called CopilotMemory, and custom instructions are not discoverable that way at all.

None of that is hidden. Together they mean that a company with a careful retention regime for Copilot prompts and responses has none for Copilot memory unless it builds one. The same pattern shows up elsewhere. In AgentCore Memory, raw events expire on a schedule you set, up to 365 days, but long-term records never expire unless you give them a time to live, and shortening the event expiry does not touch events already written. In Foundry, every low-level memory call has to carry a scope, and a missing or wrong scope is an isolation bug between users.

The erasure problem

Under GDPR, a person can ask you to erase their data, and agent memory makes that harder. One conversation can produce several copies: the raw event, the extracted fact, the summary, and on AWS an episodic reflection that the documentation says can span more than one user. Erasure means finding and deleting each of them. Foundry added item-level create, read, update and delete in its current preview. AWS recommends a namespace per user so a person’s records can be located; I could not find a per-record delete in its documentation, so check that before you depend on it.

I would test this before launch with a real request: pick a test user, let the agent remember things, then try to produce and delete every record about that user. If the answer depends on a ticket to the platform team, write the procedure down before launch.

Poisoned memory

Memory is also an attack surface. A paper first posted in March 2025, known as MINJA, showed that an attacker can plant false records in an agent’s memory through ordinary queries alone, with no write access, and reported that across the three agents tested the injection landed in memory about 98 percent of the time and changed the agent’s later behaviour about 77 percent of the time. OWASP’s Top 10 for Agentic Applications, published in December 2025, lists memory and context poisoning as its sixth entry. Microsoft’s own guidance for Foundry memory is to screen what enters and leaves memory with prompt-injection detection and to run adversarial tests. A poisoned memory is worse than a poisoned prompt because it can steer later sessions, and a deletion process that does not exist cannot clean it up.

What to set before memory is switched on

  • Which memory types the agent may keep. A user profile is a different risk from an episodic record of everything the agent did.
  • The isolation key. One scope per user or tenant, required on every call, with no fallback to a shared scope.
  • Retention. A time to live on raw events and on long-term records, set as short as the use case tolerates.
  • Who can read memory, including administrators, and whether reads and writes are logged somewhere your audit team can see.
  • Screening on the way in. Prompt-injection detection on what gets written, and a review path for what the extractor decided to keep.
  • The deletion runbook, tested against a real erasure request, covering every copy.
  • Whether retention policies and labels reach the memory store at all, or whether you need a separate regime.

The caveat is that these products are new and several are in preview, so the controls change month to month. Foundry’s memory adds features with each preview. AWS added a time to live for long-term records in October 2026. That is a reason to keep the memory scope narrow at first and to write the governance down in your own terms, so that when a platform adds a control you know which gap it fills.

I wrote up the per-platform retention and deletion settings in the QueryNow guide to agent memory.