Link to home
Start Free TrialLog in
Avatar of ITMASTER68
ITMASTER68

asked on

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?
Avatar of Adam Brown
Adam Brown
Flag of United States of America image

try this:

get-mailbox <name> -archive | search-mailbox -searchdumpsteronly -deletecontent
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
Avatar of ITMASTER68
ITMASTER68

ASKER

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?
ASKER CERTIFIED SOLUTION
Avatar of ITMASTER68
ITMASTER68

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
this was the only solution that removed dumpster content from archive Mailbox