We have an mailbox that just collects data from mailbox searches, we would like to purge some of this data from the mailbox, do I have any options via the powershell to accomplish this.
Thanks in advance
Technology Tips and News
We have an mailbox that just collects data from mailbox searches, we would like to purge some of this data from the mailbox, do I have any options via the powershell to accomplish this.
Thanks in advance
Hi
If you want to delete folder from mailbox then you need to use EWS library and Powershell.
There is no other option.
But if you want to remove only messagess from mailboxes then use:
search-mailbox with option -deletecontent
Hi,
You may use the following cmdlet to delete all the contents of the inbox and all the sub folders inside
get-mailbox -Identity name | Export-mailbox -DeleteContent -IncludeFolders "\Inbox"
Hi
Check this EWS Script and see if it will help dont forget the user run the command must have full access permission to target mailbox
Cheers
If you have any feedback on our support, please click
here
Hi,
You may use the following cmdlet to delete all the contents of the inbox and all the sub folders inside
get-mailbox -Identity name | Export-mailbox -DeleteContent -IncludeFolders "\Inbox"
Hi All,
Does anyone have the answer for the Exchange 2013 powershell solution to deleting the contents of a specific folder?
Kind regards, Scott.