How can I delete a folder and contents from a mailbox?
I guess it is with Search-Mailbox, but how do I target a folder and contents?
Technology Tips and News
How can I delete a folder and contents from a mailbox?
I guess it is with Search-Mailbox, but how do I target a folder and contents?
You could use Outlook.
According to this reference you can use the folderpath query term. I haven't tested it.
Hi,
Check the EWS Script in the following link to see if it will be helpful for you.
Dont forget to grant full access permission to your account on target mailbox
Best Regards.
Correct, I could do from Outlook. In this case there was another mailbox of 250MB restored to a folder called "Restored" and deleting from Outlook was painful. I was looking for a Server based solution.
I did delete this folder from Outlook in the end, but I still looking for a Server based solution for next time. I will look into EWS solution.