If you had cleaned manually your mailbox via SSH or SFTP then you might need to update the mailbox quota

Recalculate quota for single mailbox:

doveadm quota recalc -u user@domain.com

Recalculate quota for ALL mail accounts:

doveadm quota recalc -A