doveadm mailbox delete -u user@example.com -r Legacy

Category: Mail Servers & Postfix

doveadm mailbox delete -u user@example.com -r Legacy

Delete a mailbox and all its messages

Permanently removes the named folder and expunges every message inside it, with no recovery. The -r flag also deletes child folders. Consider `doveadm move` or a backup first; there is no trash-bin safety net here.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.