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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

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:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Joe HillSr Systems EngineerAuthor Commented:
Found my answer from another source.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.