Delete emails

Frequent Contributor

Hi All

i am using the below syntax to delete email but i am unable to, can anyone correct the syntax


New-ComplianceSearch -Name "user1_search" -ExchangeLocation -ContentMatchQuery '"Received:08/18/2020 00:00..08/20/2020 23:59" AND from:"" AND Subject:"Test've Test-abcdef msggg"'
start-compliancesearch "user1_search"
1 Reply
best response confirmed by Rising Flight (Frequent Contributor)

You are only running a search, not performing any deletions. Read the documentation: