Remove all messages in a mailbox

Pavel Stano stano at
Wed Jun 25 10:11:31 UTC 2014


we use namespace with prefix = INBOX.
When we need to remove all messages in mailbox we need to run this
doveadm expunge -u user at domain mailbox INBOX ALL
doveadm expunge -u user at domain mailbox INBOX.* ALL

The first remove mailboxes in inbox and the second in other subfolders.

And in case you use dbox format:
doveadm purge -u user at domain

On Wed, 25 Jun 2014 17:57:21 +0800 "Murray Trainer"
<mtrainer at> wrote:

> Hi All,
> I am having trouble removing all messages in a mailbox.   The
> command below doesn't remove all the messages:
> doveadm expunge -u user at domain mailbox  '*' all
> Do I need to add .* or other?
> THanks
> Murray

[ Ohodnotte kvalitu mailu: ]

Pavel Stano | Troubleshooter

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <>

More information about the dovecot mailing list