AI-18 Field guide / AI and automation
Find, keep and remove Microsoft Copilot prompts and responses
When a client asks what Copilot did, or needs something it was shown taken out, you need to know where the evidence is. The audit log says who and what was touched but not what was typed. The text lives in a hidden mailbox folder, and removing it has side effects.
On this page
What the audit log records
Microsoft Purview Audit logs Copilot use automatically, as part of Audit (Standard), as long as auditing is on in the tenant. The audit logging SOP shows how to check that before a rollout.
Each user interaction is a CopilotInteraction record. It shows who used Copilot, when, in which app, and which files, sites or other resources Copilot touched to answer, including the sensitivity label ID of each. It also records when a policy blocked or limited access to a resource, and whether the public web was used: look for BingWebSearch in the AISystemPlugin property. Microsoft documents flags for a detected jailbreak attempt (on the prompt message) and a detected cross-prompt injection attack (on the resource), which are worth filtering for after an incident.
The audit record does not contain the text of the prompt or the response. To see that, you need eDiscovery or Data Security Posture Management for AI. Admin changes to Copilot settings and plugins are audited too.
Where the prompts and responses are kept
Microsoft stores the text of Copilot interactions in the user's Exchange Online mailbox, in a hidden folder that people and admins cannot browse directly. Compliance staff reach it through eDiscovery, Communication Compliance and retention policies. A few related items are kept elsewhere:
- Files users upload to Copilot Chat go in a folder in the user's OneDrive.
- Copilot Pages and Copilot Notebooks live in a user-owned SharePoint Embedded container.
- If a retention policy for cloud attachments applies, the version of a file Copilot referenced is kept in the Preservation Hold library of its SharePoint site or OneDrive.
Copilot memory, the facts it keeps about a user, are stored in the mailbox as contact items. Microsoft notes that deleting a conversation from Purview or eDiscovery does not delete the memory.
Search the audit log
In the Microsoft Purview portal open Audit and search a date range. Use the Activities field to filter by operation name, such as CopilotInteraction. To find a particular app, the AppIdentity value is not a filter, so export the results and filter the file. Copilot in Teams, Word and Outlook, and Security Copilot, show up under different AppHost and AppIdentity values.
Retention of the record itself is separate. Microsoft's audit retention page says that keeping a record longer than 180 days, up to one year, needs the user who generated it to have an E5 licence or a Purview or eDiscovery and Audit add-on, and 10 years needs a further add-on. For a Business Premium client, check which add-ons they own before you promise a look-back period. Audit records for third-party AI apps use pay-as-you-go billing and are kept for 180 days.
Set retention with the client
The client chooses how long Copilot prompts and responses are kept, with their own compliance adviser if they have one. Create a retention policy in Microsoft Purview, Data Lifecycle Management, and choose the location Microsoft Copilot experiences. Copilot used to be covered by the Teams chats and Copilot interactions location, but Microsoft says Copilot retention is now separate from Teams chats, so do not assume an old Teams chat policy covers Copilot. Open the policy and check its locations. The same page lists other AI apps that policies can cover, such as ChatGPT Enterprise and Gemini, where the right collection policy captures their content.
Deletion is slow by design. A timer job runs every one to seven days, deleted items sit in a hidden folder for at least a day, and Microsoft's own example is that a delete-after-one-day policy can take up to 16 days before the text no longer appears in eDiscovery. Any other retention policy, Litigation Hold or eDiscovery hold on the mailbox suspends the deletion. Do not promise a client that something is gone tomorrow.
When a user leaves and the account is deleted, their Copilot messages move to an inactive mailbox and stay subject to the retention policy. What a user still sees in the Copilot app is not a reliable guide to what is kept or deleted, so check eDiscovery.
Search and remove after a data spill
Use this when something the client must not keep has been put through Copilot, after the exposure response has decided that removal is right. Get the client's written agreement first, and ask whether anyone has placed a legal hold on those mailboxes. Removing a hold or retention policy to make a delete work can destroy evidence the client is required to keep.
- Have the right roles. Creating a case and searching needs eDiscovery Manager. Deleting needs the Search And Purge role, which the Data Investigator and Organization Management groups have by default.
- Create an eDiscovery case and a search. Use the Item class condition, choose Copilot activity, and narrow it with a date range or keywords.
- Review what the search returns. Deletion removes everything it finds, and only up to 10 items per mailbox each time.
- Find the mailboxes with results in the search statistics (Top Locations). Check each for holds and retention policies. Microsoft says those must be removed before the data can be deleted, otherwise it is kept. Write down each one you remove so you can put it back.
- Run purgeData on the search through Microsoft Graph Explorer, or PowerShell in the US Government clouds. The user gets no notice.
- Wait. Deleted items move to the hidden SubstrateHolds folder for at least a day, and the timer job removes them for good the next time it runs, usually within one to seven days. Search again to confirm.
- Put back every hold and retention policy you removed, and record that you did.
If the data also went into a file, Page or Notebook, those are separate and need their own cleanup.
Checklist / Usable takeaway
Copilot logging and retention record
- Auditing on: [checked when / by whom].
- Audit look-back: [180 days or longer / licences or add-ons that allow it].
- Copilot retention policy: [location Microsoft Copilot experiences / period chosen / who approved].
- Other AI apps covered: [ChatGPT Enterprise, Gemini, others / policy or not needed].
- Holds on mailboxes: [who knows about them / where recorded].
- People allowed to search and delete: [names / roles Search And Purge, eDiscovery Manager].
- Removal run: [date / client approval / mailboxes / holds removed and restored].
- Confirmed gone: [search repeated on / result].
Do the first search on a test mailbox before you need it in an incident, so the roles and the steps are not new on the day.
Notes
Checked against Microsoft Learn on December 2, 2026: audit logs for Copilot and AI applications, retention for Copilot and AI apps, searching for and deleting AI data in eDiscovery, data protection and auditing for Copilot and audit log retention policies. Roles, licence needs and portal names change; check the current pages. This is not legal advice: whether data must be kept or may be deleted is for the client and their adviser to decide. See method and evidence notes.