Microsoft Purview eDiscovery
General

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 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

  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).

    {
    "purgeType": "permanentlyDelete",
    "purgeAreas": "teamsMessages"
    }
    

    Important:

    A.** purgeAreas specifiesthetargetforthepurge **request.

    • To purge Microsoft** Teams **messages, set purgeAreas to teamsMessages.
    • To purge **Only thecompliancecopyofaTeamsmessagestoredintheuser'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** messageanditscompliancecopy need to be purged, use separatepurge **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.** Theeffectof purgeType dependsontheselected **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** deletedregardlessofwhether purgeType issetto recoverable ****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 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.