#can't delete figure out a way to mass delete emails from exchange

3 messages · Page 1 of 1 (latest)

oblique crypt
#

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.

unique tusk
#

I see a typo: recejved should be received.

oblique crypt
#

Sorry that was the text extractor on the phone , there is no typo.