Quantcast
Channel: Exchange Server 2013 - General Discussion forum
Viewing all articles
Browse latest Browse all 4521

Delete all mail from a specific folder in one user's mailbox

$
0
0

I am trying to permanently delete the contents in just one user's folder. The path is similar to Inbox/projects/projectname. I was looking at syntax for -DeleteContent & that looks like it *might* do it, but I am not sure of the exact syntax to use in powershell for that.

Search-Mailbox -Identity "User Name" -TargetFolder "Inbox\projects\projectname" -LogLevel Full -DeleteContent

Would such a command work, if not what would be the correct syntax. Is there a command I can run that will list the contents of said folder before I permanently delete it?

Thanks!



http://abeNd.org


Viewing all articles
Browse latest Browse all 4521

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>