How to purge emials from Deleted items in Microsoft 365 group?

Sanjeev Malhotra 21 Reputation points
2022-12-02T10:18:45.06+00:00

266545-image.png

266530-image.png

266469-image.png

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,634 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vasil Michev 110.2K Reputation points MVP
    2022-12-02T10:44:05.283+00:00

    You have few options here.

    1) Assign a retention policy that will automatically remove old messages: https://learn.microsoft.com/en-us/microsoft-365/compliance/create-retention-policies?view=o365-worldwide
    2) Use the Get-RecoverableItems/Remove-RecoverableItems cmdlets. Probably not the best choice given the amount of items you have in the folder.
    3) Use an EWS/Graph API based script to clean up the content of the folder. Similarly, you can use a low-level tool such as EWS Editor.
    4) Open the Group in OWA and remove messages therein (right-click on the Folders node > Add shared mailbox > enter the group address).

    Retention policy is probably your best choice here, as this will likely not be a one-time operation, and you might also have other groups needing the same treatment.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.