Delete TotalDeletedItem in Users' Online archive only

I'd like to purge the TotalDeletedItems in my online archive for users since they are growing rather large and I don't plan on recovering items from archive mailboxes.  The command to run for regular mailbox is:


Search-mailbox -identity "name" -SearchDumpsterOnly -DeleteContent

There does not seem to be a switch for -archive?
ITMASTER68Asked:
Who is Participating?
 
ITMASTER68Author Commented:
I had to use the MFCMAPI approach and cleanup each individual Archive recoverable folder.  not pretty but effective, have lots of whitespace now :)
0
 
Adam BrownSr Solutions ArchitectCommented:
try this:

get-mailbox <name> -archive | search-mailbox -searchdumpsteronly -deletecontent
0
 
Jeffery HayesSystem Support Technician Commented:
Does the mailbox have single item recovery enabled?
Get-mailbox smtp | fl *item*
 If yes please note your need to disable  this first.

Set-mailbox smtp -singleitemrecoveryenabled $false

For more details see the following url

http://technet.microsoft.com/en-us/library/dd298173(v=exchg.141).aspx
0
 
ITMASTER68Author Commented:
The command :
get-mailbox <name> -archive | search-mailbox -searchdumpsteronly -deletecontent

this worked but also deleted totaldelteditems form both regular mailbox and archive.. I just need it to remove from archive?
0
 
ITMASTER68Author Commented:
this was the only solution that removed dumpster content from archive Mailbox
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.