• Outlook User
  • New Outlook app
  • Outlook.com
  • Outlook Mac
  • Outlook & iCloud
  • Developer
  • Microsoft 365 Admin
    • Common Problems
    • Microsoft 365
    • Outlook BCM
    • Utilities & Addins

Automatically Cleanup Outlook's Deleted Item and Junk Email Folders

Slipstick Systems

› Outlook › Configure and Maintain › Automatically Cleanup Outlook’s Deleted Item and Junk Email Folders

Last reviewed on December 20, 2023     60 Comments

Applies to: Outlook (classic), Outlook 2007, Outlook 2010

Do you want to empty your Deleted Items and Junk Email folders automatically? You can use the 'empty deleted items on exit' option built into Outlook to empty the Deleted Items folder, but it can slow down the exiting process. It also only works on the Deleted Items folder, not Junk E-mail.

Plus, it's an all or nothing process - if it's enabled, it will empty the folder every time you close Outlook. You can't configure it to only delete items that are older or over a certain size. And if you accidentally delete something you need to keep and close Outlook before retrieving it from the Deleted Items folder, it's history. It can only be recovered if it was deleted from an Exchange server mailbox and deleted items recovery is enabled.

Fortunately, there are other options. The first, which (almost) any Outlook user can use, is AutoArchive. Set it to run every few days (or even daily) and configure the Deleted Items and Junk Email folder to have items older than 1 day old (or more) deleted.

AutoArchive is disabled for Exchange server mailboxes in Outlook 2007 anhd newer when archive mailboxes are configured on the Exchange Server.

The second option is used with Exchange server accounts only and is controlled by the Exchange administrator, not the user. The administrator can configure Mailbox Manager to delete items from any folder by age, size, or both, and set exceptions for specific message classes.

 

Use AutoArchive to delete older Deleted Items and Junk E-mail

Open the AutoArchive dialog by going to File, Options, Advanced, AutoArchive Settings. Enable Run AutoArchive every 14 days. In Outlook 2007 and older: Open the AutoArchive dialog by going to Tools, Options, Other, AutoArchive.
Autoarchive settings in Outlook 2016 and newer

The default is 14 days, but you'll probably want to lower it to 5 or less days. If you don't want to archive messages in other folders, do not apply the settings to all folders! You can apply the settings to Junk Email and Deleted items manually.
autoarchive-settings

You can leave the other settings the default, but remember, if you click the 'Apply these settings to all folders' button, it will apply the settings to all folders, including calendar or any folder you may store old important messages in.

You'll need to disable AutoArchiving or change the archive period on these folders individually, or raise the archive period (60 months is the maximum) and apply it to all folders, then change the setting on folders you want to archive more often.

Next, right click on the Deleted Items folder and choose Properties, then AutoArchive tab. Choose the option to 'Archive this folder using these settings' and pick a number. My preference is to set AutoArchive to run every 2 to 3 days and delete items older than 2 or 3 days. This provides some insurance, should I need to recover something from either folder.
Configure per-folder archive settings

Repeat these steps on the Junk E-Mail folder.

For Deleted Items and Junk E-mail folders, you'll want to select the option to permanently delete the items.

If you applied the AutoArchive settings to all folders, you may want to change the setting for the calendar or other folders.

Configure Outlook to Empty Deleted Items on Exit

Because this setting keeps Outlook open until the deleted folder is empty, you want to close Outlook yourself before shutting down your computer. Otherwise, Windows may force Outlook closed, which will cause Outlook to check the data file for inconsistencies the next time you use Outlook.

To avoid problems after deleting a large number of items, empty the Deleted Items folder manually before closing (right click on the folder, choose Empty Deleted items).

When you Empty deleted items on exit, you will not be able to recover accidentally deleted items once you close Outlook. For this reason, I prefer using the AutoArchive method.

In Outlook 2007 and older, go to Tools, Options, Other tab to enable this option.

In Outlook 2010, go to File, Options, Advanced, near the top of the dialog is the option to empty deleted items on exit.

Empty deleted items folder

Empty Outlook's Deleted Items Folder Automatically Video Tutorial

The video tutorial was created in Outlook 2010 and shows you how to configure AutoArchive to clean out the Deleted Items folder on a regular basis. The process is the same in older versions, with the exception that AutoArchive is on the Tools, Options dialog, Other tab.

Configuring Mailbox Manager

If you use an Exchange mailbox, the administrator can configure the server to automatically delete older items.

This is a good way to insure the Deleted Items and Junk Email folders are emptied routinely or that messages with large attachments are removed from the mailbox once they age. As with AutoArchive, each folder can have different settings, for example, Deleted items are deleted if older than 2 days, but Junk email stays for 5.

Typically, Mailbox manager is run once a week, often on Saturday or Sunday night. Because different mailbox manager policies can be applied to different groups of users, it's a good way to keep mailboxes small when a user is off work an extended period of time, without disabling or deleting their mailbox.

From the the Exchange System Manager's Recipient Policies container, the administrator would add a mailbox manager policy to an existing address policy or create a new recipient policy, keeping in mind that only one policy is applied to each mailbox.

To create a new policy, right click on Recipient Policies and choose New, Recipient policy. To add a Mailbox manager policy to an existing Email address policy, right click on the policy and choose 'Change property pages'. Add a checkmark beside Mailbox Manager Settings and click OK. Create a filter on the General tab and select the folders and edit the size and age conditions as needed on the Mailbox manager tab.

Admins can apply the policy to any folders in the mailbox, provided they know the folder name and path. To do so, click the Add button and enter the folder and path in the form of 'Inbox\subfolder' and set the size and age limit.

Enable mailbox management and configure the times it runs from the server's property sheet by browsing to the server under the Administrative groups container.

More Information

  • Add EU to the International Blocked TLD List
  • Blocking Mail From New Top-Level Domains
  • Bulk Add Addresses to Safe and Blocked Senders Lists
  • Don't Get Caught In a Phishing Hack
  • Empty Multiple Deleted Items Folders using a Macro
  • How to Block Foreign Spam
  • Icon is not correct on the Junk Mail Folder
  • Junk Email Filtering isn't Working in Outlook
  • Junk Mail Filtering in Outlook
  • Office 365 Fraud Detection Checks
  • Outlook's "Not Junk" option isn't available
  • Rules and Tools to Filter Junk Mail
  • Samsung smartphones move email to the Junk folder
  • Sending Autoreplies to Spammers
  • Should You Respond to Junk Mail?
  • Understanding the Safe and Blocked Senders lists
  • Using Outlook's Junk Filter with Multiple Accounts
  • Using Outlook's Junk Mail filter
  • What Moved a Message to the Junk E-mail Folder?
Automatically Cleanup Outlook's Deleted Item and Junk Email Folders was last modified: December 20th, 2023 by Diane Poremsky

Related Posts:

  • Using Outlook's AutoArchive Feature
  • Using Outlook's Junk Mail filter
  • How to locate, read, or recover items archived using AutoArchive
  • Using Outlook's Junk Filter with Multiple Accounts

About Diane Poremsky

A Microsoft Outlook Most Valuable Professional (MVP) since 1999, Diane is the author of several books, including Outlook 2013 Absolute Beginners Book. She also created video training CDs and online training classes for Microsoft Outlook. You can find her helping people online in Outlook Forums as well as in the Microsoft Answers and TechNet forums.

Subscribe
Notify of
60 Comments
newest
oldest most voted
Inline Feedbacks
View all comments

marija christofer (@guest_200951)
August 22, 2016 6:29 am
#200951

The situation could be frustrating and can go a long way to slowing down your

system’s speed. What do you do at this time? There is need to delete those

unnecessary files.

0
-1
Reply
Diane Poremsky(@diane-poremsky)
Author
Reply to  marija christofer
August 22, 2016 7:45 am
#200956

It's usually not a problem in Outlook to have mail in the deleted items folder -at least until you look in the folder. Then a huge folder can be slow to open.

1
0
Reply
Dick Sims (@guest_200111)
July 19, 2016 1:49 pm
#200111

When I close Outlook, even my inbox gets deleted. Help!

0
0
Reply
Diane Poremsky(@diane-poremsky)
Author
Reply to  Dick Sims
July 19, 2016 9:14 pm
#200114

What type of email account do you have configured in outlook? (POP3, IMAP, Exchange)
Are the messages moved to the deleted folder?

0
0
Reply
Dave Staats (@guest_192959)
August 28, 2015 10:30 am
#192959

I don't have anything between Office 365/Exchange and my Inbox and this has been this way in every setup I have had for maybe 15 years. I really don't care about how much I get or download because I am pretty careful with my addresses. I am only concerned with how Outlook handles it. I just don't see why I can't have some kind of code that says "forward anything intended for the Junk folder to the Deleted folder". I'm not a coder but this seems like it should be easy. I want this for everything going to that folder. It is what the rules are supposed to do on a selected (those messages I made rules for) basis. I just want it to do that for everything or for at least the rules I made.

0
0
Reply
Diane Poremsky(@diane-poremsky)
Author
Reply to  Dave Staats
August 28, 2015 11:37 pm
#192974

You'd need to use an itemadd macro for that - it would watch the junk folder and move the stuff to the deleted items folder. The second macro on the page, with the attachment stuff removed (which is all but the move line in the itemadd macro portion) https://www.slipstick.com/developer/code-samples/use-vba-move-messages-based-values-fields/ - will do it. use this for the move line:
Item.Move (Session.GetDefaultFolder(olFolderdeleteditems))

use this as the folder to watch in the application_start portion:
Set olInboxItems = objNS.GetDefaultFolder(olFolderJunk).Items

0
0
Reply
Dave Staats (@guest_192953)
August 28, 2015 9:19 am
#192953

Right...so this is where I believe Microsoft to be either stupid or willfully ignorant. I have set up dozens of "rules" over the years that say 'delete it and stop processing more rules'. Even when I turn off junk filtering they still go to the junk file instead of deleted folder. The option you point out doesn't give me the chance to check it in the deleted folder before I "really" delete it...or as it says "permanently" delete it. If I could just "regular" delete it everything would be great. If the rules worked everything would be great. I just do not understand why they make something so incredibly simple SO hard. Do you have a tool or solution for this?
I anticipate what MS might say but I just want to save a step and deal with everything in the deleted folder.

0
0
Reply
Diane Poremsky(@diane-poremsky)
Author
Reply to  Dave Staats
August 28, 2015 10:07 am
#192955

Does your antivirus or mail server check for spam? That is the common cause of junk still getting filtered with the junk setings off. The infobar on the message in the junk folder will say if outlook moved it or if something else did - you won't know what the something else was, only that it wasn't moved their by outlook.

Rules can be funky depending on the account type (imap, because headers are loaded first, especially in 2010 and older), the format (html, sing words in the body conditions), or addresses (words in the header works best). Spammers use tricks in html mail to make filtering difficult, they change addresses often, making filtering on addresses difficult.

It's usually better to have the server scan mail as it arrives - they use better filters that assigns points to questionable elements and mark it spam when it hits a specific number of points. They can mark mail within a certain range as spam and delete messages with a high spam confidence level. This way you don't have to download a lot of junk.

0
0
Reply
Dave Staats (@guest_192934)
August 27, 2015 12:42 pm
#192934

Rules just do not work (another story). I would like a way to have anything put in the Outlook Junk folder automatically go to the Deleted folder. Is this possible? I have spent many hours creating rules to automatically delete stuff and it doesn't work. I check deleted items anyway so I'd not even need rules if I could just get it all to go to Deleted and bypass Junk. I'd pay for something like that but I don't see any tool to "forward" mail from one folder to another. Any ideas? BTW I have seen Slipstick for many years and I remember buying some great tools a while ago.

0
0
Reply
Diane Poremsky(@diane-poremsky)
Author
Reply to  Dave Staats
August 27, 2015 4:00 pm
#192938

Welcome back!

Rules won't work on junk email - there is an option to delete junk mail instead of putting it in the junk folder or you can use autoarchive to delete it as it ages (best option if you are worried about "good" mail marked as junk).

Junk Mail

If this doesn't work, you can use an itemadd macro to watch the junk folder and delete.

0
0
Reply
Maxx R (@guest_191877)
July 14, 2015 12:22 am
#191877

Hi, Diane:

HowTo empty multiple "Deleted Items" folders simultaneously in Microsoft Outlook 2007 ?

Multiple "Deleted Items" folders are from *.pst files for messages and RSS content, stored by year.

Trying to avoid having to manually and routinely, visually check each folder when in Outlook, even when references to the folders are placed and grouped in Favorite Folders.

Also, at least once/year Favorite Folders seems to reset to the default without warning, forcing a manual rebuild, by hand, of all of the previously stored folder references, including "Deleted Items" (is there a way to save Outlook's Favorite Folders?).

Is there a VBA or macro or add-in solution to empty the multiple "Deleted Items" folders simultaneously ?

A solution would be easier if there was a "Record a Macro" feature in MSOTLK 2007 to expose the API code when selecting the Empty "Deleted Items" Folder icon. Too bad.

Tying or linking a reference - perhaps a registry key - of each desired folder to the default Empty "Deleted Items" folder icon would be the most obvious and efficient solution...click once, and done!

TYVM. M.

0
0
Reply
Diane Poremsky(@diane-poremsky)
Author
Reply to  Maxx R
July 14, 2015 1:18 am
#191883

It would be possible to use VBA but it can be messy if you have a lot of folders. I might have some code around here that can do it.

It sounds like the favorites folder is getting corrupted. You can copy the profile-name.XML file as a backup - it's in %appdata%\microsoft\outlook

0
0
Reply
Phil Reinemann (@guest_189665)
March 6, 2015 10:19 am
#189665

The auto-archive is set up on the local Outlook client and essentially moves items from the local ost file to the archive.pst file. When it does that the mailbox on the exchange server effectively has those moved emails removed from the server. The accounts are all set up to leave messages on the server, exept when archiving. For their iPhones I'll have to see how they are set up. They likely use iOS 8, but I can only see what they might have by looking at my personal iPod Touch with iOS 5. On iOS 5 empty deleted items choices are after one day, one week, one month and Never (which is what mine is set to). Maybe iOS 8 has a two week delete. iOS 5 also has Delete from server after seven days, when removed from inbox and never (mine is set to never). With iOS 5 you can turn off an account instead of deleting it, so maybe I'll try that. Our users have more control over their iPhones. They aren't managed as well as the laptops we give them, and very few of them actually know what all the settings do or how they should be… Read more »

0
0
Reply
Phil Reinemann (@guest_189657)
March 5, 2015 6:49 pm
#189657

Hi Diane, and others who might be reading.
Is there any reason why some users' Deleted items folders would only have two weeks of deleted items? Mine go back 9 months. This is Outlook 2007 on Win7 Pro and we use an exchange server. Many/most of the users have iPhones with email via MobileIron. (I'll have to check if they have tablets or other computers accessing their email.)
-Empty Deleted Items on exit is NOT set.
-There are no rules set up, most of these people do not use VBA, and auto-archive is turned off for the Deleted items folder.
-The exchange server admin has set no retention policy.
-These are managed laptops with corporate group policies set up, and the users do not have admin rights.

0
0
Reply
Diane Poremsky(@diane-poremsky)
Author
Reply to  Phil Reinemann
March 5, 2015 7:31 pm
#189658

autoarchive is generally not available for exchange, which rules out another possible cause. if their phone is set to only sync 2 weeks, the phone could be deleting it as it ages. If one of the users could delete their account from the phone and use owa, you can see if old deleted mail hangs around longer.

Is it in deleted items recovery?

0
0
Reply

Visit Slipstick Forums.
What's New at Slipstick.com

Latest EMO: Vol. 30 Issue 19

Subscribe to Exchange Messaging Outlook






Support Services

Do you need help setting up Outlook, moving your email to a new computer, migrating or configuring Office 365, or just need some one-on-one assistance?

Our Sponsors

CompanionLink
ReliefJet
  • Popular
  • Latest
  • Week Month All
  • Jetpack plugin with Stats module needs to be enabled.
  • Open Outlook Templates using PowerShell
  • Count and List Folders in Classic Outlook
  • Google Workspace and Outlook with POP Mail
  • Import EML Files into New Outlook
  • Opening PST files in New Outlook
  • New Outlook: Show To, CC, BCC in Replies
  • Insert Word Document into Email using VBA
  • Delete Empty Folders using PowerShell
  • Warn Before Deleting a Contact
  • Classic Outlook is NOT Going Away in 2026
Ajax spinner

Recent Bugs List

Microsoft keeps a running list of issues affecting recently released updates at Fixes or workarounds for recent issues in classic Outlook (Windows).

For new Outlook for Windows: Fixes or workarounds for recent issues in new Outlook for Windows .

Outlook for Mac Recent issues: Fixes or workarounds for recent issues in Outlook for Mac

Outlook.com Recent issues: Fixes or workarounds for recent issues on Outlook.com

Office Update History

Update history for supported Office versions is at Update history for Office

Outlook Suggestions and Feedback

Outlook Feedback covers Outlook as an email client, including Outlook Android, iOS, Mac, and Windows clients, as well as the browser extension (PWA) and Outlook on the web.

Outlook (new) Feedback. Use this for feedback and suggestions for Outlook (new).

Use Outlook.com Feedback for suggestions or feedback about Outlook.com accounts.

Other Microsoft 365 applications and services




New Outlook Articles

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Google Workspace and Outlook with POP Mail

Import EML Files into New Outlook

Opening PST files in New Outlook

New Outlook: Show To, CC, BCC in Replies

Insert Word Document into Email using VBA

Delete Empty Folders using PowerShell

Warn Before Deleting a Contact

Classic Outlook is NOT Going Away in 2026

Newest Code Samples

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Insert Word Document into Email using VBA

Warn Before Deleting a Contact

Use PowerShell to Delete Attachments

Remove RE:, FWD:, and Other Prefixes from Subject Line

Change the Mailing Address Using PowerShell

Categorize @Mentioned Messages

Send an Email When You Open Outlook

Delete Old Calendar Events using VBA

Repair PST

Convert an OST to PST

Repair damaged PST file

Repair large PST File

Remove password from PST

Merge Two Data Files

Sync & Share Outlook Data

  • Share Calendar & Contacts
  • Synchronize two computers
  • Sync Calendar and Contacts Using Outlook.com
  • Sync Outlook & Android Devices
  • Sync Google Calendar with Outlook
  • Access Folders in Other Users Mailboxes

Diane Poremsky [Outlook MVP]

Make a donation

Mail Tools

Sending and Retrieval Tools

Mass Mail Tools

Compose Tools

Duplicate Remover Tools

Mail Tools for Outlook

Online Services

Calendar Tools

Schedule Management

Calendar Printing Tools

Calendar Reminder Tools

Calendar Dates & Data

Time and Billing Tools

Meeting Productivity Tools

Duplicate Remover Tools

Productivity

Productivity Tools

Automatic Message Processing Tools

Special Function Automatic Processing Tools

Housekeeping and Message Management

Task Tools

Project and Business Management Tools

Choosing the Folder to Save a Sent Message In

Run Rules on messages after reading

Help & Suggestions

Submit Outlook Feature Requests

Slipstick Support Services

Buy Microsoft 365 Office Software and Services

Visit Slipstick Forums.

What's New at Slipstick.com

Home | Outlook User | Exchange Administrator | Office 365 | Outlook.com | Outlook Developer
Outlook for Mac | Common Problems | Utilities & Addins | Tutorials
Outlook & iCloud Issues | Outlook Apps
EMO Archives | About Slipstick | Slipstick Forums
Submit New or Updated Outlook and Exchange Server Utilities

Send comments using our Feedback page
Copyright © 2025 Slipstick Systems. All rights reserved.
Slipstick Systems is not affiliated with Microsoft Corporation.

wpDiscuz

Sign up for Exchange Messaging Outlook

Our weekly Outlook & Exchange newsletter (bi-weekly during the summer)






Please note: If you subscribed to Exchange Messaging Outlook before August 2019, please re-subscribe.

Never see this message again.

You are going to send email to

Move Comment