Forum Discussion
TomCSB
Apr 08, 2026Copper Contributor
Administratively retract a user's email
I was recently asked to retract a message that was sent in-error to staff. I ran a discovery/search, and saved it, but when I ran the powershell script after connecting to Exchange, the script could ...
vanessatamora
Apr 18, 2026Copper Contributor
They changed that like a year ago where there is another module you need to use, Security and Compliance
Its been a few months but I remember having trouble using the name and finally had to go broad with something like this
Connect-IPPSSession
Get-ComplianceSearch | FL
Get-ComplianceSearch -Identity "SearchID" | Select-Object Name, Status, Items
New-ComplianceSearchAction -SearchName "SearchID" -Purge -PurgeType SoftDelete
#or
New-ComplianceSearchAction -SearchName "SearchID" -Purge -PurgeType HardDelete