Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Exchange 2007 Delete Deleted Items after 30 days

Posted on 2008-11-13
Medium Priority
Last Modified: 2012-05-05
We need to delete all emails in the Deleted Items folder in Outlook, after 30 days. I created this policy in Exchange Server, and can also set this up for individual user mailboxes.

However, my question is, how do I set this up for all user mailboxes without going and applying this setting one by one to each user.
Question by:pzozulka
  • 3
  • 2
  • 2
LVL 17

Expert Comment

ID: 22952556
As long as the users dont have the setting explicitly set on their account then the infomration store shoudl take precedenance..

Author Comment

ID: 22953101
Thank you for your response. This article sounds like it is talking about deleted items retention. (After an email is deleted from the Deleted Items folder, Exchange Server will wait 30 days until it permanently deletes this).

I am talking about emptying the Deleted Items folder from Outlook after emails reach a 30 day of life within the Deleted Items folder.

I am referring to this post, except I need to make this for all user mailboxes, not individual ones.
LVL 17

Expert Comment

ID: 22953136
Sorry misread.. Shall have a think..!
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 24

Expert Comment

by:Rajith Enchiparambil
ID: 22953723
The final step is to schedule Exchange to run this periodically.
Server Configuration > Hub Transport.  Right-click on the server, choose Properties, then click on the Messaging Record Management tab.  In here you can tell Exchange when to run the process.

Author Comment

ID: 22954663
I'm sorry, I must have worded my question wrong. I am not interested in mailbox retension or email retension. I am interested in Exchange deleting items older than 30 days from Outlook's Deleted Items folder.
Following these steps:
--Under Organization Configuration, Mailbox, you need to go to Managed Default Folders and select Deleted Items, then add a new Managed Content Setting that deletes items after they've been in Deleted Items for over 30 days

--Go to Managed Folders Mailbox Policies and create a policy that uses the new Managed Content Setting

--Assign the new Policy to the user in question

This however works for individual users, I need to apply this to all the users.
My questions is how?

Accepted Solution

pzozulka earned 0 total points
ID: 22977571
Get-Mailbox | Set-Mailbox ManagedFolderMailboxPolicy 'Default Managed Custom Folders'

Applies setting to all mailboxes. For more info see below under Step 4:

Featured Post

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A few solutions to a problem some of us have been having when trying to add Hostgator email accounts to Outlook 2016 (will probably work with Outlook 2013 as well).
Microsoft Jet database engine errors can crop up out of nowhere to disrupt the working of the Exchange server. Decoding why a particular error occurs goes a long way in determining the right solution for it.
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Suggested Courses
Course of the Month10 days, 8 hours left to enroll

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question