Removing all emails from a specific sender address from all users

SYSTEM INFORMATION
OS type and version Ubuntu Linux 20.04.6
Webmin version 2.111
Virtualmin version 7.10.0 Pro
Webserver version apache
Related packages doveadm

We have 400+ user accounts on our virtualmin server. We also have tons of automated emails for all users which now takes tons of space. I want to remove all emails sent from “x@y.com” for all users with a single command. Is the command below enough or gonna work?

Thanks

sudo doveadm expunge -A mailbox INBOX from "x@y.com"

By the docs I can’t see the from option. Or is that a query search argument?

I quess there is only way to find out, maybe a test environment.