Purge 'Recover Deleted Items' folder in Office 365/Exchange Online

%3CLINGO-SUB%20id%3D%22lingo-sub-57418%22%20slang%3D%22en-US%22%3EPurge%20'Recover%20Deleted%20Items'%20folder%20in%20Office%20365%2FExchange%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-57418%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20some%20users%20that%20I%20wish%20to%20remove%20all%20the%20items%20in%20the%20'Recover%20Deleted%20Items'%20folder%20when%20the%20user%20goes%20to%20their%20'Deleted%20Items'%20folder%20in%20Outlook%20on%20the%20Web.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20logged%20into%20powershell%20and%20trying%20to%20do%20this%2C%20but%20the%20command%20I'm%20finding%20on%20the%20web%20doesn't%20seem%20to%20work%20as%20it's%20for%20Exchange%20on%20Prem.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESearch-Mailbox%20-Identity%20info%40domain.com%20-SearchDumpsterOnly%20-DeleteContent%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20clue%20how%20to%20achieve%20this%20for%20Exchange%20Online.%20I've%20set%20the%20retention%20to%201%20day%2C%20but%20want%20to%20purge%20them%20totally%20asap.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-57418%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExchange%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-58565%22%20slang%3D%22en-US%22%3ERe%3A%20Purge%20'Recover%20Deleted%20Items'%20folder%20in%20Office%20365%2FExchange%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-58565%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20need%20to%20disable%20SingleItemRecovery%2C%20as%20when%20it's%20enabled%20deleted%20items%20end%20up%20in%20the%20Purges%20folder.%20The%20folder%20is%20not%20user%20accessible%2C%20but%20you%20will%20still%20see%20results%20when%20running%20Search-Mailbox.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnd%20of%20course%20the%20mailbox%20should%20not%20be%20on%20any%20type%20of%20hold.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Frequent Contributor

Hi,

 

I have some users that I wish to remove all the items in the 'Recover Deleted Items' folder when the user goes to their 'Deleted Items' folder in Outlook on the Web.

 

I'm logged into powershell and trying to do this, but the command I'm finding on the web doesn't seem to work as it's for Exchange on Prem.

 

Search-Mailbox -Identity info@domain.com -SearchDumpsterOnly -DeleteContent

 

Any clue how to achieve this for Exchange Online. I've set the retention to 1 day, but want to purge them totally asap.

 

Thanks.

1 Reply
Highlighted

You need to disable SingleItemRecovery, as when it's enabled deleted items end up in the Purges folder. The folder is not user accessible, but you will still see results when running Search-Mailbox.

 

And of course the mailbox should not be on any type of hold.