# Optimize Database?

**URL:** <https://forum.emclient.com/t/optimize-database/89795>\
**Category:** Mail\
**Created:** [April 25, 2023, 9:51pm UTC](https://forum.emclient.com/t/optimize-database/89795 "2023-04-25T21:51:45Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Gary](https://forum.emclient.com/user_avatar/forum.emclient.com/gary/32/20374_2.png) [@Gary](https://forum.emclient.com/u/Gary)\
**Post date:** [May 6, 2023, 8:48am UTC](https://forum.emclient.com/t/optimize-database/89795/4 "2023-05-06T08:48:56Z")

</div>

The utility is meant for older versions of eM Client.

In more recent versions, do the following:

Close eM Client and open a Windows Command Prompt. Not a powershell, but a command prompt.

Paste in this command including the leading "

`"C:\Program Files (x86)\eM Client\MailClient.exe" /dbrepair /rebuildall`

When that is done, restart eM Client.

---

_[View the full topic](https://forum.emclient.com/t/optimize-database/89795)._
