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

Exchange Online
Exchange Online
A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Vasil Michev 123.6K Reputation points MVP Volunteer Moderator
    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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.