Edisc Search Teams Data
In brief
The page clarifies that cmdlet purges affect only mailbox compliance copies, while Graph purges targeting `teamsMessages` permanently delete Teams messages regardless of `purgeType`. Separate requests are required to purge both copies.
What Purview admins need to know
Use the documented purge-area distinctions to avoid leaving user-visible messages in Teams or permanently deleting messages unintentionally.
Summaries are generated from the documentation change itself.
Documentation change
The comparison below shows only the changed extract. Use the full-page view for complete context.
- Soft delete or hard delete operations remove the user copy permanently and can't be recovered for user use. Important
Cmdlet-based purges of Teams messages remove only the compliance** copystoredinthe **mailbox. The Teams message isn't removed from the Teams service and remains visible to the user. After the compliance copy is deleted, eDiscovery can no longer remove the user-visible Teams message. Avoid using cmdlets to purge Teams messages.
If
**youuse**cmdlets, review the export report and exclude Teams messages from the purge. Cmdlet-based purges remove only the compliance copy and don't remove the message from the Teams service.If
**youuseMicrosoft**Graph, review the report and verify that the Teams messages identified for deletion are intended to be deleted before performing the purge. When the purge targetsteamsMessages, the Teams messages are permanently deleted and can't be recovered.- To ensure complete removal of items, plan your purge strategy carefully and understand which copy each deletion method targets.
Tip
In Graph Explorer, set the request method to POST and enter the following endpoint to delete the items returned by the search that you created in Step 2.
https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/{ediscoveryCaseID}/searches/{ediscoverySearchID}/purgeDatawhere {ediscoveryCaseID} and {ediscoverySearchID} are the IDs that you obtained in the previous procedures.With this command, you must provide a request body that specifies the purge
**area to target (mailboxesorteamsMessages) and the purge**type (recoverableorpermanentlyDelete).{ "purgeType": "permanentlyDelete", "purgeAreas": "teamsMessages" }Important:
A.
**purgeAreasspecifiesthetargetforthepurge**request.- To purge Microsoft
**Teams**messages, setpurgeAreastoteamsMessages. - To purge
**Only thecompliancecopyofaTeamsmessagestoredintheuser's**mailbox, setpurgeAreastomailboxes. - Purging the compliance copy from the mailbox doesn't remove the message from the Teams service. The message remains visible to the user in Teams.
- If both the Teams
**messageanditscompliancecopy need to be purged, use separatepurge**requests. PurgeteamsMessagesfirst, followed bymailboxes. Don't specify a combined value such as 'mailboxes,.`` ``teamsMessages' - The order is important because after the compliance copy is purged from the mailbox, the Teams message can no longer be purged through eDiscovery.
B.
**TheeffectofpurgeTypedependsontheselected**purgeAreas.- When
purgeAreasis set tomailboxes,purgeTypedetermines whether mailbox items are deleted usingrecoverableorpermanentlyDelete. - When
purgeAreasis set toteamsMessages, Teams messages are permanently**deletedregardlessofwhetherpurgeTypeissettorecoverable****orpermanentlyDelete**. In either case, the Teams messages can't be recovered.
If the POST request is successfully accepted, the API returns an HTTP
**202****Accepted**response. The response includes aLocationheader that provides the URL for checking the status of the purge operation.For more information about this operation, including request-body parameters and examples, see ediscoverySearch: purgeData.
- To purge Microsoft
@@ -61,13 +61,11 @@ Microsoft Teams chat data is stored in separate copies, one for compliance purpo
- **Soft delete or hard delete operations** remove the user copy permanently and can't be recovered for user use. **Important**
-Cmdlet-based purges of Teams messages remove only the **compliance**\*\* **copy** **stored** **in** **the** \*\***mailbox**. The Teams message isn't removed from the Teams service and remains visible to the user. After the compliance copy is deleted, eDiscovery can no longer remove the user-visible Teams message. Avoid using cmdlets to purge Teams messages.
+Cmdlet-based purges of Teams messages remove only the **compliance copy stored in the** **mailbox**. The Teams message isn't removed from the Teams service and remains visible to the user. After the compliance copy is deleted, eDiscovery can no longer remove the user-visible Teams message. Avoid using cmdlets to purge Teams messages.
-- **If**\*\* **you** **use** \*\***cmdlets**, review the export report and exclude Teams messages from the purge. Cmdlet-based purges remove only the compliance copy and don't remove the message from the Teams service.
-
- - **If**\*\* **you** **use** **Microsoft** \*\***Graph**, review the report and verify that the Teams messages identified for deletion are intended to be deleted before performing the purge. When the purge targets `teamsMessages`, the Teams messages are permanently deleted and can't be recovered.
-
- To ensure complete removal of items, plan your purge strategy carefully and understand which copy each deletion method targets.
+- **If you use cmdlets**, review the export report and exclude Teams messages from the purge. Cmdlet-based purges remove only the compliance copy and don't remove the message from the Teams service.
+- **If you use Microsoft Graph**, review the report and verify that the Teams messages identified for deletion are intended to be deleted before performing the purge. When the purge targets `teamsMessages`, the Teams messages are permanently deleted and can't be recovered.
+- To ensure complete removal of items, plan your purge strategy carefully and understand which copy each deletion method targets.
Tip
@@ -178,31 +176,31 @@ After you confirm the correct case and search IDs, use the following request to
1. In Graph Explorer, set the request method to **POST** and enter the following endpoint to delete the items returned by the search that you created in Step 2. `https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/{ediscoveryCaseID}/searches/{ediscoverySearchID}/purgeData` where *{ediscoveryCaseID}* and *{ediscoverySearchID}* are the IDs that you obtained in the previous procedures.
- With this command, you must provide a request body that specifies the **purge**\*\* **area to target (`mailboxes` or `teamsMessages`) and the purge** \*\***type** (`recoverable` or `permanentlyDelete`).
+ With this command, you must provide a request body that specifies the **purge area to target (`mailboxes` or `teamsMessages`) and the purge** **type** (`recoverable` or `permanentlyDelete`).
```json
{
- "purgeType": "permanentlyDelete",
- "purgeAreas": "teamsMessages"
+ "purgeType": "permanentlyDelete",
+ "purgeAreas": "teamsMessages"
}
```
**Important:**
- **A.**\*\* **`purgeAreas`** **specifies** **the** **target** **for** **the** **purge** \*\***request.**
+ **A.** **`purgeAreas`** **specifies the target for the purge request.**
- - To purge **Microsoft**\*\* **Teams** \*\***messages**, set `purgeAreas` to `teamsMessages`.
- - To purge \*\*Only **the** **compliance** **copy** **of** **a** **Teams** **message** **stored** **in** **the** **user's** \*\***mailbox**, set `purgeAreas` to `mailboxes`.
+ - To purge **Microsoft Teams messages**, set `purgeAreas` to `teamsMessages`.
+ - To purge Only **the compliance copy of a Teams message stored in the user's mailbox**, set `purgeAreas` to `mailboxes`.
- Purging the compliance copy from the mailbox doesn't remove the message from the Teams service. The message remains visible to the user in Teams.
- - If both the **Teams**\*\* **message** **and** **its** **compliance** **copy need to be purged, use separate** **purge** \*\***requests**. Purge `teamsMessages` first, followed by `mailboxes`. Don't specify a combined value such as `mailboxes,`` ``teamsMessages`.
+ - If both the **Teams message and its compliance copy need to be purged, use separate purge requests**. Purge `teamsMessages` first, followed by `mailboxes`. Don't specify a combined value such as '`mailboxes,teamsMessages'`.
- The order is important because after the compliance copy is purged from the mailbox, the Teams message can no longer be purged through eDiscovery.
- **B.**\*\* **The** **effect** **of** **`purgeType`** **depends** **on** **the** **selected** \*\***`purgeAreas`.**
+ **B. The effect of** **`purgeType`** **depends on the selected** **`purgeAreas`** **.**
- When `purgeAreas` is set to `mailboxes`, `purgeType` determines whether mailbox items are deleted using `recoverable` or `permanentlyDelete`.
- - When `purgeAreas` is set to `teamsMessages`, Teams messages are **permanently**\*\* **deleted** **regardless** **of** **whether** **`purgeType`** **is** **set** **to** **`recoverable`** \*\*\*\*or`permanentlyDelete`\*\*. In either case, the Teams messages can't be recovered.
+ - When `purgeAreas` is set to `teamsMessages`, Teams messages are **permanently deleted regardless of whether** **`purgeType`** **is set to** **`recoverable`** or`permanentlyDelete`. In either case, the Teams messages can't be recovered.
- If the POST request is successfully accepted, the API returns an **HTTP**\*\* **`202`**\*\*\*\*`Accepted`\*\* response. The response includes a `Location` header that provides the URL for checking the status of the purge operation.
+ If the POST request is successfully accepted, the API returns an **HTTP** **`202`**`Accepted`response. The response includes a `Location` header that provides the URL for checking the status of the purge operation.
For more information about this operation, including request-body parameters and examples, see [ediscoverySearch: purgeData](/en-us/graph/api/security-ediscoverysearch-purgedata).
