# Anyone know why the mail\_data.dat file in AppData\\Roaming doesn't reduce in size when you delete messages?

**URL:** <https://forum.emclient.com/t/anyone-know-why-the-mail-data-dat-file-in-appdata-roaming-doesnt-reduce-in-size-when-you-delete-messages/55625>\
**Category:** Frequently Asked Questions\
**Created:** [June 3, 2015, 10:01pm UTC](https://forum.emclient.com/t/anyone-know-why-the-mail-data-dat-file-in-appdata-roaming-doesnt-reduce-in-size-when-you-delete-messages/55625 "2015-06-03T22:01:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Virginia\_Close](https://forum.emclient.com/letter_avatar_proxy/v4/letter/v/ecc23a/32.png) [@Virginia\_Close](https://forum.emclient.com/u/Virginia_Close)\
**Post date:** [June 3, 2015, 10:01pm UTC](https://forum.emclient.com/t/anyone-know-why-the-mail-data-dat-file-in-appdata-roaming-doesnt-reduce-in-size-when-you-delete-messages/55625/1 "2015-06-03T22:01:56Z")

</div>

Anyone know why the mail\_data.dat file in AppData\Roaming\eMClient doesn’t reduce in size when you delete messages from the In, Sent and Deleted boxes? I thought I could free up hard drive space by deleting old messages (about 1.2GB worth), but there is no effect on the mail\_data.dat file –&nbsp;it remains at 2.09GB which is the size it was before deleting 5,103 messages.

---

<div class="post-metadata">

**Author:** ![Paul\_Technical\_Suppo](https://forum.emclient.com/letter_avatar_proxy/v4/letter/p/e495f1/32.png) [@Paul\_Technical\_Suppo](https://forum.emclient.com/u/Paul_Technical_Suppo)\
**Post date:** [June 4, 2015, 10:37am UTC](https://forum.emclient.com/t/anyone-know-why-the-mail-data-dat-file-in-appdata-roaming-doesnt-reduce-in-size-when-you-delete-messages/55625/2 "2015-06-04T10:37:18Z")

</div>

Hello Virginia,  
deleted items are not immediately removed from the database as the database table is being used by other parts of the application, however eM Client should run an automatic database compression occasionally to reduce the size of the database by clearing the database tables from additional data that is no longer being used.

You should be able to speed up the process by running this utility, [http://www.emclient.com/tools/dbrepairrebuildall.exe](http://www.emclient.com/tools/dbrepairrebuildall.exe "Link: http://www.emclient.com/tools/dbrepairrebuildall.exe")

Hope this helps,
