How to Bulk Delete Emails in Microsoft 365 Exchange Online?

0
3
Asked By TechieGuru99 On

I'm looking to clean up some mailboxes in Exchange Online under Microsoft 365 by bulk deleting emails with the subject "system alerts." There are around 1,000,887 of these to remove. I explored using Purview Content Search and the purge command, but it seems limited to just 10 items per mailbox at a time, which isn't practical for my needs since we don't have the E5 or eDiscovery Premium license. What's the best supported way to efficiently manage this bulk delete?

3 Answers

Answered By CloudSleuth88 On

If you have global admin rights, you can create a registered app to access those mailboxes. Use MS Graph to filter and retrieve emails, but managing over a million items isn't trivial. If you're open to third-party solutions, I'd recommend checking out our tool which allows for bulk deletion with a preview option. You can see it in action here: [Ytria Hard Delete Emails](https://www.ytria.com/blog/sapio365-2-2-1/#hard-delete-emails).

Answered By AdminNinja47 On

Another option is to set up a Power Automate flow, but I’m not sure how effective that would be for your case.

Answered By DataWizard22 On

You could try out this tool: [Ews-SearchAndDelete on GitHub](https://github.com/jmartinmsft/Ews-SearchAndDelete). EWS is still supported, even though Microsoft isn't focusing on it anymore.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.