30 days purge on delete items - Exchange 2013

How can I set this up, to purge what is in the deleted items after 30 days.
Who is Participating?

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

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.


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
In summary of the link previously posted, the following Exchange PowerShell command sets the retention time

Set-MailboxDatabase -Identity mailboxDatabaseName -DeletedItemRetention 30

Open in new window

Thank you OriNetworks for your comment !

nourben: You should check and read it before executing anything

Check out also this !
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

nourbenAuthor Commented:
The question is not about the Dumpster and when the user delete emails in the deleted items , we want exchange to delete any emails in the deleted Items after 30 days (all mailboxes) , we will keep the default 14 days in the dumpster.
Sorry to jump in when you already had the answer Timoros. Our admins typically frown upon just posting a link without some kind of example or summary of what the solution might be. This helps retain the actual solution if a link stops working for some reason. Happy to help and yes the user should read before running.
A recipient policy with mailbox manager will accomplish this.

See the following link for the exact example you are looking for
nourbenAuthor Commented:
Thanks guys, but I need it for Exchange 2013, not 2003 or 2007.
Henry DawsonCommented:
hi user...

You can Configure Deleted Item retention and Recoverable Items quotas,

Get some help from here...

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

From novice to tech pro — start learning today.