EWS Managed API equivalent for MFCMAPI's "Emtpy items and subfolder from folder..." #495
Unanswered
JeremyTBradshaw
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm hoping to get some direction on how I can accomplish the same thing as MFCMAPI's feature, when right-clicking a folder and choosing Advanced > Emtpy items and subfolders from folder.... I am able to use MFCMAPI to empty the Purges hidden folder, no problem. When I try to use EWS Managed API's Folder.Empty method, I get "The folder cannot be emptied.". With other folders, I have no issues with the EWS Managed API's Folder.Empty method, it just works. Seems like it is blocked from working on the purges folder. But then MFCMAPI is somehow not blocked. I understand MFCMAPI isn't using EWS Managed API (at least I don't think). My use case is that I need to automate the emptying of the Purges folder. Well really my use case is to empty the DiscoveryHolds folder, which I can do successfully, but items HardDelete and go to Purges which cannot be emptied (except if using MFCMAPI).
All this is in an effort to avoid having to use New-ComplianceSearchAction -Purge which is just a nightmare.
Thanks in advance for any insights you can offer.
Also, checkout MSGraphPSEssentials. I offer it as hoped bargaining chips for tips on my described issue.
Beta Was this translation helpful? Give feedback.
All reactions