Forum Discussion
AB21805
Apr 12, 2024Bronze Contributor
Deleting Items from Email Account in bulk
Hi everyone,
I've been attempting to delete all items from an email, but it seems that they're mainly residing in the recoverable items folder, which is currently at 100GB.
How can I remove all of these? I've tried deleting them manually, but they keep reappearing, even the ones in the sent items folder.
I've used the command:
New-ComplianceSearchAction -SearchName "No-reply1" -Purge -PurgeType HardDelete
This command deletes 10 items at a time, as indicated when I run:
Get-ComplianceSearchAction -Identity 'No-reply1_Purge' | Format-list
However, when I perform another content search, it still shows the same number of items in the mailbox as when I first conducted the content search.
There is no hold on the mail box either.
Can you please assist me in deleting all the items from this mailbox?
3 Replies
Sort By
- Follow the instructions here: https://learn.microsoft.com/en-us/purview/ediscovery-delete-items-in-the-recoverable-items-folder-of-mailboxes-on-hold?view=o365-worldwide
Some of the steps might not be applicable, so you can just skip them. At the very least, you need to disable Single item recovery.- AB21805Bronze Contributor
- Such items you can delete by removing the corresponding discovery hold(s), waiting for the changes to replicate and forcing:
Start-ManagedFolderAssistant email address removed for privacy reasons -HoldCleanup