Forum Discussion
ClaudiaWalter
Dec 08, 2022Copper Contributor
Outlook 2016: How to delete Folder with Exchange Server Script
How can I delet a folder of a user with Exchange Server skript?
- EtherosCopper ContributorHallo Claudia, Are you talking about a mailbox folder or a Public Folder? Can you give an example?
- ClaudiaWalterCopper ContributorOutlook has automatically create draft Folder eg draft1, draft2,....draft32. Now I want to delete this draft folders. The permission is standard none and anonymous none. When I delete it within outlook I get the message you have no permission. The Idea is now to do with a script at the exchange server
- EtherosCopper ContributorIn Exchange PowerShell with admin rights, you could try this one:
get-mailbox -Identity name | Export-mailbox -DeleteContent -IncludeFolders "\draft1"