Forum Discussion

Marvin Oco's avatar
Marvin Oco
Iron Contributor
May 10, 2019

what is the PowerShell to Purge all items in "deleted items" folder - per user and for all mailboxes

what is the PowerShell to Purge all items in "deleted items" folder - per user and for all mailboxes?

 

thanks

 

1 Reply

  • There's no such PowerShell cmdlet. In O365, it's up to the user to empty its Deleted items folder. If you want to manage this centrally, deploy a retention policy tag.

     

    Another option is to periodically run some EWS-based script. 

Resources