Deleted Items Folder Cleanup

My company has an on prem Exchange 2013 environment running CU15.  I want to clean up the deleted items folder for all of my users; I am looking to delete items older than 90 days from this folder only.  I have already implemented a retention policy with the 90 day retention tag for the deleted items folder.  That policy is working and I can see the tags being applied.  However I do not want to wait 90 days for the items to be purged, I want to delete items older than 90 days right away and then have the retention policy keep up day to day.  I have spent hours researching this and can not find a way to complete this. Thank you.
Joe HillSr Systems EngineerAsked:
Who is Participating?
 
Joe HillSr Systems EngineerAuthor Commented:
After some additional research it appears Microsoft has removed this functionality from Exchange 2013.  Retention polices are the only way to complete this task.
0
 
chanderpal singh rathoreMicrosoft Exchange EngineerCommented:
Hello,

Have you tried by deleting the dumpster:

Search-Mailbox –identity test@test.com –SearchDumpsterOnly –DeleteContent
0
 
Sudeep SharmaTechnical DesignerCommented:
This should be the corrected syntax:

Search-Mailbox -Identity "Test User" -SearchDumpsterOnly -TargetMailbox "Discovery Search Mailbox" -TargetFolder "TestUser-RecoverableItems" -DeleteContent

Thanks,
Sudeep
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
Joe HillSr Systems EngineerAuthor Commented:
Thank you for your input but I am not looking for the Recover Deleted Items folder, I want the Deleted Items folder that is visible within OWA and Outlook.
0
 
Sudeep SharmaTechnical DesignerCommented:
That is even simpler, use one of the solutions from the link below from EE;

https://www.experts-exchange.com/questions/28025828/Script-for-deleting-Deleted-items.html

Thanks,
Sudeep
0
 
Joe HillSr Systems EngineerAuthor Commented:
This solution will not work as the Export-Mailbox cmdlet is not supported in Exchange 2013.
0
 
chanderpal singh rathoreMicrosoft Exchange EngineerCommented:
Hi Joe,

Have you tried the command?
Search-Mailbox –identity test@test.com –SearchDumpsterOnly –DeleteContent
0
 
Joe HillSr Systems EngineerAuthor Commented:
I have and that only clears out the recover deleted items folder (The Dumpster).  On my user in question it deleted 774 items but the delete items folder still has over 24K items in it.
0
 
chanderpal singh rathoreMicrosoft Exchange EngineerCommented:
0
 
Joe HillSr Systems EngineerAuthor Commented:
Found my answer from another source.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.