Delete more than 10 items from a mailbox using Compliance Search
https://answers.microsoft.com/en-us/msoffice/forum/all/delete-more-than-10-items-from-a-mailbox-using/f28efa60-3766-4f50-af2d-e1f9be588931 Problem description: The tenant admin needs to delete more than 10 items that match certain criteria from a mailbox, with as little manual intervention as possible. Approach: From O365 Compliance Portal, you create a Compliance search targeting a single mailbox and configure it with the required query criteria to identify the items that must be deleted. You run the Compliance Search and inspect the list of returned items to confirm the proper search criteria has been used, and you observe the number of items is high. Challenge: Deleting items by using Compliance Search is currently limited to 10 items at one time, as mentioned in the ‘ New-ComplianceSearchAction ’ PowerShell article. Solution: Use a PowerShell script to automate the deletion of items in multiple batches of 10 items, as described below. O365Troubleshooters is a module