Forum Discussion

Ali Fadavinia's avatar
Ali Fadavinia
Iron Contributor
May 19, 2021

Confirm if items(Emails) purged after running New-ComplianceSearchAction in Compliance PowerShell

Hi Tech Community Folks,

We have received a request to delete some items(Email Messages] from EXCHANGE.

According to this guide, 

 https://docs.microsoft.com/en-us/microsoft-365/compliance/search-for-and-delete-messages-in-your-organization?view=o365-worldwide I created my content search and ran it [ STEP1]

 

It has found 44 items!

Then as STEP2: I  connected to Compliance & Security Center in PowerShell as Admin, and ran New-ComplianceSearchAction -SearchName "ABC_004_22_2" -Purge -PurgeType SoftDelete
[ I ran this command atleast 10 times ]

Once I get the status via:

Get-ComplianceSearchAction  -Identity 'ABC_004_22_2_Purge' | Format-list

 

It shows the task has been completed...

Name SearchName Action RunBy JobEndTime Status
---- ---------- ------ ----- ---------- ------
ABC_004_22_2_Purge ABC_004_22_2 Purge Fadavinia, Ali 2021/05/18 9:26:29 PM Completed


Now my question is here:
 
When I go to Security & Compliance --> Content Search and query my case again the results are still 44 items.

What am I missing? how do I know if they are really deleted?

Thanks for your thoughts and input
Ali

 

  • VasilMichev's avatar
    VasilMichev
    May 19, 2021
    Run/export the report, you can see the path for each item therein.

Resources