• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 419
  • Last Modified:

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?
0
ITMASTER68
Asked:
ITMASTER68
  • 3
1 Solution
 
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:
I had to use the MFCMAPI approach and cleanup each individual Archive recoverable folder.  not pretty but effective, have lots of whitespace now :)
0
 
ITMASTER68Author Commented:
this was the only solution that removed dumpster content from archive Mailbox
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now