Microsoft 365 features that help users manage their subscriptions, account settings, and billing information.
Hi Jhest,
Thank you for posting. You may refer to the article to check the PowerShell script to see whether it can meet your requirement. Please note that as article mentioned Script also works against Office 365 / Exchange Online by specifying an e-mail address as Mailbox. See Removing Duplicate Items from a Mailbox
Moreover, if you have any problem using PowerShell script or any further query then I would suggest you please contact our dedicated Script Center Forum support team and there experts’ will focus on the requirement to get it resolved more efficiently.
Your time and understanding will be highly appreciated.
Best regards,
Shyamal