Forum Discussion
Rising Flight
Sep 01, 2020Brass Contributor
Delete emails
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 user1@contoso.com -ContentMatchQuery '"Received:08/18/2020 00:00..08/20/2020 23:59" AND from:"test@gmail.com" AND Subject:"Test've Test-abcdef msggg"'
start-compliancesearch "user1_search"
You are only running a search, not performing any deletions. Read the documentation: https://docs.microsoft.com/en-us/microsoft-365/compliance/search-for-and-delete-messages-in-your-organization?view=o365-worldwide
You are only running a search, not performing any deletions. Read the documentation: https://docs.microsoft.com/en-us/microsoft-365/compliance/search-for-and-delete-messages-in-your-organization?view=o365-worldwide