Delete Folder

Copper Contributor

Hello,

I have folder with custom name in Exchange Contacts? How to delete this folder via Powershell?

3 Replies

PowerShell doesn't deal with item/folder level operations. For that, you would need to use the EWS/Graph API. Both of these can be called via PowerShell if you prefer.

@Vasil Michev thanks for information. Could you please send me some tutorial or sample code? I have not dealt with work at the API level.

@Mateusz710 : Continuing from Where @Vasil Michev left off, hopefully this should be a good starting point (for now) : https://docs.microsoft.com/en-gb/archive/blogs/exovoice/delete-a-list-of-folders-from-specific-mailb...