MS Exchange, set item deletion time in the database to 1 day

Posted on 2013-10-02
Medium Priority
Last Modified: 2013-10-02
I need to reduce the size of my exchange database, and did an offline defrag, but only reduced from 39 to 37Gb. Knowing it's more than just the mailbox sizes in ESM (the public folder folder database), I read here on EE that a person needed to do this: (set item deletion time in the database to 1 day, and then forcing an ONLINE defrag to zero those pages. Once I got my 1221 event in the log, an offline defrag works it's magic)

I believe my question is "how to / where to set the deletion time in the DB to 1 day... seems to me that this is an appropriate approach.

The EE article I referenced is: http://www.experts-exchange.com/Software/Server_Software/Email_Servers/Exchange/Q_26926131.html

((THE crux of my problem is that I've reached the outlying size of my DB (where i'd set it to 39gb, I believe, and some days ago, users outgoing email is not reaching destination. It shows sent, but doesn't get received; and hours/days later, receive an administrative delay, or such.))

Thanks so much for feedback on this.
Question by:spotteddogs
  • 3
  • 2
LVL 35

Expert Comment

by:Joseph Daly
ID: 39539526
I believe you are asking about deleted item retention settings.

If so the folllwing powershell cmdlet will do it for you.

Set-MailboxDatabase -Identity "DBName" -DeletedItemRetention 1

This is for exchange 2010 it should be similar in 2007, although i think you can also get to it through the gui as well.

Author Comment

ID: 39540257
Thank you for the reply, yes its on SBS 2003, so Exchanges 5.x... I'm definitely going to need some kind of gui approach for this. I would go for entering the command line, but for one thing, I'm not certain it is the command I want, and additionally, I'm definitely going to want to reset it, to what it originallywas.
 Also, did you read the note that I was taking this consideration from
LVL 35

Accepted Solution

Joseph Daly earned 2000 total points
ID: 39540570
I do believe he was talking about deleted item retention. Basically what is happening is even though you deleted messages and freed up space you will not see that until it gets deleted from the deleted item retention area.

Take a look at these steps below. They are for exchange 2000 and 2003 and detail how to modify a DB's deleted item retention. Im pretty certain that if you have deleted items and not recovered the space this should resolve it.


Author Comment

ID: 39540632
Great, I will check it out, and follow up here. I suspect though you clearly satisfied my request here, I wasn't asking for a solution to the problem I'm having, but about what the person suggested in the other note

Author Closing Comment

ID: 39542201
This certainly fit the question of where to go for setting "1 day interval" for data retention / deletion. -thanks.

Featured Post

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

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.

Join & Write a Comment

I am posting this in case anyone runs into similar issues that I did, this may save you a lot of grief: Condition: 1. Your NetBIOS domain name contains an ampersand " & " character.  (e.g. AT&T) 2. You've tried to run any Microsoft installation…
Configure external lookups on for external mail flow on Exchange 2013 and Exchange 2016.
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
Watch the video to know how one can repair corrupt Exchange OST file effortlessly and convert OST emails to MS Outlook PST file format by using Kernel for OST to PST converter tool. It can convert OST to MSG, MBOX, EML to access them. It can migrate…

624 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