Investigate and delete Copilot activity with eDiscovery
Microsoft Purview eDiscovery helps your organization investigate Microsoft 365 Copilot activity and take action when needed. You can search for interactions involving Copilot and other AI tools, review the details, and delete sensitive or inappropriate data if necessary.
This gives your organization visibility into how AI is used and a way to respond to issues like data leaks or policy violations.
What to know before you begin
- You'll need to be a member of the eDiscovery Manager role group to create and manage cases.
- To delete content, you must be assigned the Search And Purge role, included in the Data Investigator and Organization Management role groups.
- A maximum of 10 items per mailbox can be deleted at once. This is intended to support targeted cleanup during investigations.
Step 1: Create an eDiscovery case
Start by creating a case in the Microsoft Purview portal:
- Navigate to the Microsoft Purview portal and select Solutions > eDiscovery > Cases.
- Select Create case and provide a unique name and optional description.
- After the case is created, you're automatically added as a member.
The case helps you group related search, review, and deletion actions.
Step 2: Search for Copilot activity
After you create a case, create a search to find Copilot interactions. For example, if an investigation requires you to confirm whether a sensitive report was used in Copilot prompts, you can create a search scoped to Copilot interactions. This lets you find those items across mailboxes and determine whether they should be preserved or deleted.
In the case, select Create search.
Give your search a name and a description.
In the Query tab on the Search page, add the relevant data sources under Data sources.
In the Condition builder, set Type to Copilot activity.
Add filters such as keywords or date ranges.
Once your condition is built, select Run query.
Each Copilot prompt or response is stored in the user's mailbox and identified by an item class. Some examples include:
| Tool or experience | Item class |
|---|---|
| Microsoft 365 Copilot | IPM.SkypeTeams.Message.Copilot.* |
| Copilot in Word | IPM.SkypeTeams.Message.Copilot.Word |
| BizChat | IPM.SkypeTeams.Message.Copilot.BizChat |
| Security Copilot | IPM.SkypeTeams.Message.Copilot.Security.SecurityCopilot |
| Teams AI Notes | IPM.SkypeTeams.Message.TeamCopilot.AiNotes.Teams |
| Non-Microsoft browser-based AI | IPM.SkypeTeams.Message.CloudAIApp.SaaS.<AppID> |
Use the search preview to confirm that results look accurate.
Tip
To identify if Copilot accessed the public web during an interaction, export the message and look for the WebSearchQuery string in the HTML file.
Step 3: Review results and identify data sources
Before taking action, review the content returned by your search:
- After the search completes, select the search result and choose Add to review set.
- Create a new review set or select an existing one to use.
- Once the content is added to the review set, you can take these actions:
- Search and filter the content to focus on relevant items
- Tag items to support organization and review decisions
- Run analytics to help identify what content to retain or remove
This helps you decide if any content needs to be deleted and which sources are affected.
Step 4: Check for holds or retention policies
If your investigation requires deletion, you'll need to remove any retention settings that might prevent it:
Identify which mailboxes contain the content you want to delete.
Check if those mailboxes are subject to a hold or retention policy.
Remove those holds or policies temporarily, and make a note so you can reapply them later.
Note
Content under a hold or retention policy can't be deleted until those policies are removed.
Step 5: Delete Copilot data with Microsoft Graph Explorer
You can delete Copilot data by using Microsoft Graph Explorer or PowerShell. Make sure you have the Search And Purge role assigned in Microsoft Purview with the user performing the deletion. Deletion is needed when investigators determine that Copilot interactions contain sensitive data that shouldn’t remain in mailboxes.
Option 1: Graph Explorer
Go to Microsoft Graph Explorer and sign in with an account that has the necessary permissions.
Enter this GET request to view the list of eDiscovery cases in your organization:
https://graph.microsoft.com/v1.0/security/cases/ediscoveryCasesFind the case you're using and copy the case ID.
Use the case ID in this GET request to list all searches in the case:
https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/{ediscoveryCaseID}/searchesLocate the search that returned Copilot content and copy its search ID.
Submit this POST request to delete the items found in the search:
https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/{ediscoveryCaseID}/searches/{ediscoverySearchID}/purgeDataWhen successful, a confirmation appears in a green banner with the HTTP response code.
Option 2: Use PowerShell (for government tenants)
If your organization is in a US Government cloud where Graph Explorer isn't supported, connect to Microsoft Graph and submit a request using PowerShell:
Connect-MgGraph -Scopes "ediscovery.ReadWrite.All" -Environment USGov
Invoke-MgGraphRequest -Method POST -Uri '/v1.0/security/cases/ediscoveryCases/{caseId}/searches/{searchId}/purgeData'
This PowerShell method uses the Microsoft Graph API to delete Copilot data, just like Graph Explorer.
Step 6: Confirm deletion and reapply holds
After deletion:
- Copilot content is moved to the SubstrateHolds folder in the user's mailbox.
- It's retained there for at least one day, then permanently deleted.
- There's no visible change for the user.
Once you're confident the data is gone, reapply any holds or retention policies you removed earlier.