Ive used something similar to this before and it worked but now the email count stays the same :
Search-Mailbox -Identity "[email protected]" -SearchQuery "(recejved:01/01/2018..12/31/2022) AND (From:[email protected])" -DeleteContent | Select Identity, Success, ResultItemsCount / OGV
I have a total of 4k emails that need to be deleted running an estimate only fired me the same amount after running this script, any ideas or input would be very helpful.