Exchange EDB Guides

Exchange EDB File Too Big Why the database never shrinks on its own and the three ways to get the space back

Leena Taylor Paul By Updated October 3, 2026 5 min read
Quick Answer

An .edb never shrinks after mail is deleted. It only gets smaller after a mailbox move or an offline defrag.

Check AvailableNewMailboxSpace first. If white space is large, move the mailboxes to a new database and delete the old one. Offline defrag with eseutil /d also works but needs downtime and free space of about 110 percent of the size the database will have after the defrag.

Measure white spaceAvailableNewMailboxSpace
Preferred fixMove mailboxes to a new database
Offline defragDowntime + free space for the new copy

The Exchange EDB file is too big and the database drive is almost full. Users deleted years of mail last month, yet the .edb file is the same size. That is by design. Exchange keeps the space for new mail instead of handing it back to Windows. Here is how to measure what is really used and how to reclaim the rest.

Why does the EDB file not shrink after deleting mail?

Deleted items first sit in Recoverable Items for the retention period, 14 days by default. After that, online maintenance frees their pages. Freed pages stay inside the .edb as white space, ready for new mail. Windows still sees the full file size.

Other things that keep a database large:

  • disconnected mailboxes waiting out their 30-day retention
  • litigation or in-place holds keeping deleted items
  • a few very large mailboxes or archives
  • mailboxes of people who left long ago

How do you check white space in an Exchange database?

Ask Exchange for the size and the free space inside it:

Deleting mail can leave free space inside the database file without making the file smaller.
Deleting mail can leave free space inside the database file without making the file smaller.
Get-MailboxDatabase -Status | ft Name,DatabaseSize,AvailableNewMailboxSpace

If AvailableNewMailboxSpace is a small share of DatabaseSize, the file is genuinely full and needs more disk or fewer mailboxes. If it is large, the space can be reclaimed.

How do you shrink an Exchange database?

MethodDowntimeSpace neededOur view
Move mailboxes to a new databaseNone for usersRoom for the new databaseBest choice in most cases
Offline defrag with eseutil /dDatabase dismounted for hoursAbout 110% of the defragmented sizeUse when no second volume exists
Export and remove old mailboxes firstNoneRoom for the PST filesDo this before either of the above

Moving mailboxes rebuilds them without the white space:

  1. Create a new database. Create a mailbox database on a volume with enough free space.
  2. Move the mailboxes. Run New-MoveRequest for each mailbox in the old database. Users keep working while it runs.
  3. Check the moves. Wait until Get-MoveRequest shows every move as Completed, then clear the requests.
  4. Remove the old database. Remove the empty database in Exchange, then delete its files.

For offline defrag instead, dismount the database, back it up, then run:

eseutil /d "D:\ExchangeDB\DB01\DB01.edb" /t "F:\Temp\DB01-defrag.edb"

Take a full backup again afterwards. The defrag gives the database a new signature, so older backups can no longer replay the new logs.

“Moving mailboxes to a fresh database beats an offline defrag almost every time. Users keep working and you get a clean file at the end.”

Nick Rogers, Founder of Univik

Which mailboxes should you archive out before shrinking?

Start with mailboxes nobody opens: people who left, shared mailboxes for closed projects and old test accounts. Export each to PST, store the files safely, then remove the mailbox. Every one you remove is a mailbox you do not have to move or defrag.

Export step 3 in Univik EDB Converter with save location and an option to split PST files above a chosen size
In the app: step 3 names each PST after its mailbox and can split large mailboxes into several files.

Univik EDB Converter can do this from a copy of the database, so the live server does not carry the export load. For live single mailboxes, the free New-MailboxExportRequest works too.

How large should an Exchange database be?

Microsoft's sizing guidance for Exchange 2016 and 2019 allows databases up to 2 TB when they have two or more highly available copies, and recommends around 200 GB when they do not. Smaller databases restore and reseed faster. If one file has grown far past those numbers, split the mailboxes across new databases while you move them.

Key Takeaways
  • An .edb file keeps freed pages as white space and never shrinks on its own.
  • AvailableNewMailboxSpace shows how much space can be reclaimed.
  • Moving mailboxes to a new database is the cleanest way to shrink.
  • Offline defrag needs downtime and free space of about 110% of the defragmented size.
  • Export and remove unused mailboxes before you move or defrag.
Archive old mailboxes out of the database

Export leavers and closed projects from a database copy to PST before you shrink. The trial saves 10 messages per folder.

Free Download See all features

Questions about large Exchange databases

No. The pages become white space inside the file and are reused for new mail. The file shrinks only after a move or an offline defrag.

It is a supported tool, but the database is offline while it runs and needs a lot of free space. Back up before you start.

No, logs sit outside the .edb. Let a full backup or circular logging truncate them. Removing them manually risks a database that cannot recover.

The engine supports far more than anyone should use. Microsoft guidance points to 2 TB with two or more copies and about 200 GB without.

It depends on the version. Exchange 2016 keeps the search index in its own folder beside the database. Exchange 2019 keeps its search data inside the mailbox database, so there it adds to the .edb size.

No. Holds travel with the mailbox, so held items move to the new database too.
Leena Taylor Paul

Leena Taylor Paul wrote this guide with the Univik team, which has shipped Windows mail tools since 2013. This guide covers why Exchange databases grow and how to reclaim the space. Last checked October 2026. Stuck? Contact our support team.

More Exchange EDB Guides

Every Univik guide for Exchange mailbox databases in one place. Start with the job in front of you.