Forum Discussion
Ali Fadavinia
May 19, 2021Iron Contributor
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:
---- ---------- ------ ----- ---------- ------
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
What am I missing? how do I know if they are really deleted?
Thanks for your thoughts and input
Ali
- Run/export the report, you can see the path for each item therein.
- Even when you do a "purge", items are not immediately deleted, as other features (holds, Single Item Recovery) can prevent this. Read here: https://docs.microsoft.com/en-us/microsoft-365/compliance/delete-items-in-the-recoverable-items-folder-of-mailboxes-on-hold?view=o365-worldwide
- Ali FadaviniaIron ContributorCorrect, I am aware of that,
In this case, neither of those items are in hold or custody.
If it is a soft-delete, it will land and showing up in the 'recoverable items' folder.
How can I check if they have moved into Recoverable Items Folder or still sitting in inboxes?- Run/export the report, you can see the path for each item therein.