doveadm purge -u user@example.com

Category: Mail Servers & Postfix

doveadm purge -u user@example.com

Purge unreferenced messages from mdbox storage

Removes messages that no longer have references from the mdbox storage files, reclaiming disk space after deletions. Only meaningful when mdbox is the mail format. Run it periodically on accounts with heavy delete activity.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.