Forum Discussion

Robert Fakes's avatar
Robert Fakes
Copper Contributor
Mar 13, 2018

New-ComplianceSearchAction cmdlet delete

When using the above cmdlet when connecting into compliance center using powershell, I am able to soft delete messages however I would like to be able to delete messages permanently. However I can only see a softdelete option.

 

Any ideas please?

 

Syntax:

New-ComplianceSearchAction -SearchName "Remove Phishing Message" -Purge -PurgeType SoftDelete
  • You can use the Search-Mailbox cmdlet to do that. Well, technically is hard-deletion, but still recoverable by admin. For actual permanent deletion you will need to disable Single Item Recovery. But hard-delete should be sufficient in most cases, as those messages are not accessible by end users.

Resources