New-ComplianceSearchAction cmdlet delete

%3CLINGO-SUB%20id%3D%22lingo-sub-171215%22%20slang%3D%22en-US%22%3ENew-ComplianceSearchAction%20cmdlet%20delete%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-171215%22%20slang%3D%22en-US%22%3E%3CP%3EWhen%20using%20the%20above%20cmdlet%20when%20connecting%20into%20compliance%20center%20using%20powershell%2C%20I%20am%20able%20to%20soft%20delete%20messages%20however%20I%20would%20like%20to%20be%20able%20to%20delete%20messages%20permanently.%20However%20I%20can%20only%20see%20a%20softdelete%20option.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAny%20ideas%20please%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESyntax%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22%22%3ENew-ComplianceSearchAction%20-SearchName%20%22Remove%20Phishing%20Message%22%20-Purge%20-PurgeType%20SoftDelete%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-171215%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-171272%22%20slang%3D%22en-US%22%3ERe%3A%20New-ComplianceSearchAction%20cmdlet%20delete%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-171272%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20can%20use%20the%20Search-Mailbox%20cmdlet%20to%20do%20that.%20Well%2C%20technically%20is%20hard-deletion%2C%20but%20still%20recoverable%20by%20admin.%26nbsp%3BFor%20actual%20permanent%20deletion%20you%20will%20need%20to%20disable%20Single%20Item%20Recovery.%20But%20hard-delete%20should%20be%20sufficient%20in%20most%20cases%2C%20as%20those%20messages%20are%20not%20accessible%20by%20end%20users.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Visitor

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
1 Reply
Highlighted

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.