Page 1 of 1

How to delete all emails

Posted: Sun Aug 19, 2018 12:29 pm
by usr999
Found descriptions how to clean all mailboxes on dovecot but it doesn't work on vesta

doveadm expunge -A mailbox '*' not seen not since 1d
doveadm expunge -A mailbox '*' seen not since 1d


or

root@frdr log]# doveadm expunge -A mailbox Trash savedbefore 90d
doveadm(root): Error: User listing returned failure
doveadm: Error: Failed to iterate through some users

in a dovecot.log

Aug 19 14:24:44 auth-worker(15034): Error: passwd-file: User iteration isn't currently supported with %variable paths


How to purge all mailboxes?

Re: How to delete all emails

Posted: Thu Aug 30, 2018 4:25 pm
by xorro
If i would be you i would go for the easiest solution which is just delete the email account and re-create same account again it will not take more then 1 minute. I know this is a silly solution but save you a lot time then banging your on google.