Announcement: Need a free practice exam or an interactive mocks material for a Microsoft certification? Click here to use the MS Forms I've created previously.
August 2, 2019 | by iaur | posted as Compliance, Exchange Online
Example: Delete items in the sent folder of admin@faceresionem.onmicrosoft.com sent on 7/12/2019
.
Query : folderid:07D918FDB06F1347B1CDCDBD245CB4630000000001090000 AND (sent:07/12/2019)
Location : Specific Location (admin@facerionem.onmicrosoft.com)
Search Name: Twerrwr
reference on the search query: https://docs.microsoft.com/en-us/office365/securitycompliance/keyword-queries-and-search-conditions (folderid and sent:)
Preview:
To get the Search Names available
Get-ComplianceSearch |
Use “Twerwrw” search preview and apply ComplianceSearchAction to purge the email accordingly
New-ComplianceSearchAction -SearchName “Twerwrw” -Purge -PurgeType SoftDelete |
-PurgeType
The PurgeType parameter specifies how to remove items when the action is Purge. Valid values are:
To check the status of the purge action
Get-ComplianceSearchAction |
https://www.codetwo.com/admins-blog/new-compliancesearch-new-version-of-search-mailbox/