I'm migrating a mailbox setup for a small office where all people are storing company emails in their own personal mailbox to a public mailbox that everyone can access. I started out with doveadm-copy, but now have to move to doveadm-move because of storage constraints.
The manpage states that the difference between *-copy and *-move is that after a successful MOVE, an EXPUNGE is performed, and I can confirm that the emails from the source mailbox are gone and have been placed in the destination mailbox. But... the disk usage only increases, whereas I would expect it to stay flat.
This is the command I use:
sudo doveadm move -u $USER "$DESTINATION_MBOX" user $USER mailbox "$SOURCE_MBOX" ALL
I suspect it may be linked to choosing the wrong "form" of the command, but as I'm running out of disk space, I'm afraid to test without understanding the mechanism better.
This is on Debian Bullseye, with dovecot v2.3.13 and the format is mdbox.