Applies to: Exchange Server 2010 SP3, Exchange Server 2010 SP2
Topic Last Modified: 2012-07-23
The Recoverable Items folder (known in earlier versions of Exchange as the dumpster) exists to protect from accidental or malicious deletions and to facilitate discovery efforts commonly undertaken before or during litigation or investigations. To learn more about the Recoverable Items folder, see Understanding Recoverable Items.
How you clean up a mailbox's Recoverable Items folder depends on whether the mailbox is placed on litigation hold or had single item recovery enabled:
- If a mailbox isn't placed on litigation hold or doesn't have
single item recovery enabled, you can simply delete items from the
Recoverable Items folder. After being deleted, you can't use single
item recovery to recover the items.
- If the mailbox is placed on litigation hold or has single item
recovery enabled, it's important to preserve the mailbox data until
the litigation hold is removed or single item recovery is disabled.
Therefore, you need to perform more detailed steps to clean up the
Recoverable Items folder.
To learn more about litigation hold and single item recovery, see Understanding Litigation Hold or "Single Item Recovery" inUnderstanding Recoverable Items.
Looking for other management tasks related to recoverable items? Check out Managing Recoverable Items.
Prerequisites
Because incorrectly cleaning up the Recoverable Items folder can result in data loss, it’s important that you're familiar with the Recoverable Items folder and the impact of removing its contents. Before performing this procedure, we recommend that you review the information in Understanding Recoverable Items.
Use the Shell to delete items from the Recoverable Items folder for mailboxes that aren't placed on litigation hold or don't have single item recovery enabled
You need to be assigned permissions before you can perform this procedure. To see what permissions you need, see the "Delete mailbox content" entry in the Messaging Policy and Compliance Permissions topic.
Note: |
---|
You can't use the EMC to delete items from the Recoverable Items folder for mailboxes that aren't placed on litigation hold or don't have single item recovery enabled. |
This example permanently deletes items from Gurinder Singh's Recoverable Items folder and also copies the items to the GurinderSingh-RecoverableItems folder in the Discovery Search Mailbox (a discovery mailbox created by Exchange Setup).
Copy Code | |
---|---|
Search-Mailbox -Identity "Gurinder Singh" -SearchDumpsterOnly -TargetMailbox "Discovery Search Mailbox" -TargetFolder "GurinderSingh-RecoverableItems" -DeleteContent |
Note: |
---|
To delete items from the mailbox without copying them to another mailbox, use the preceding command without the TargetMailbox and TargetFolder parameters. |
For detailed syntax and parameter information, see Search-Mailbox.
Use the Shell to clean up the Recoverable Items folder for mailboxes that are placed on litigation hold or have single item recovery enabled
You need to be assigned permissions before you can perform this procedure. To see what permissions you need, see the "Delete mailbox content" entry in the Messaging Policy and Compliance Permissions topic.
Note: |
---|
You can't use the EMC to clean up the Recoverable Items folder for mailboxes placed on litigation hold or have single item recovery enabled. |
If a mailbox reaches its Recoverable Items quota, we recommend that you raise the quota and not delete items from the folder. You can also monitor events in the Application log related to the Recoverable Items warning quota and take necessary actions (such as raising the quota or investigating dumpster growth for mailboxes that reach the warning quota).
If storage constraints or similar issues prevent you from raising the Recoverable Items quota, and you need to delete messages from the Recoverable Items folder of a mailbox on litigation hold or has single item recovery enabled, we recommend that you first copy data from the user's Recoverable Items folder to another mailbox. If you're deleting items due to storage constraints on one volume, you can copy items to a mailbox located on a volume that has adequate storage.
This procedure copies items from Gurinder Singh's Recoverable Items folder to the GurinderSingh-RecoverableItems folder in the Discovery Search Mailbox. Before you copy and delete items from the Recoverable Items folder, you must first perform several steps to make sure items aren't deleted from the Recoverable Items folder. After you copy items to a discovery or backup mailbox and clean up the folder, you can revert to the mailbox's previous settings.
- Retrieve the following quota settings. Be sure to note the
values so you can revert to these settings after cleaning up the
Recoverable Items folder:
- RecoverableItemsQuota
- RecoverableItemsWarningQuota
- ProhibitSendQuota
- ProhibitSendReceiveQuota
- UseDatabaseQuotaDefaults
- RetainDeletedItemsFor
- UseDatabaseRetentionDefaults
Note: If the UseDatabaseQuotaDefaults parameter is set to $true
, the previous quota settings aren't applied. The corresponding quota settings configured on the mailbox database are applied, even if individual mailbox settings are populated.Copy Code Get-Mailbox "Gurinder Singh" | Format-List RecoverableItemsQuota, RecoverableItemsWarningQuota, ProhibitSendQuota, ProhibitSendReceiveQuota, UseDatabaseQuotaDefaults, RetainDeletedItemsFor, UseDatabaseRetentionDefaults
- RecoverableItemsQuota
- Retrieve the mailbox access settings for the mailbox. Be sure
to note these settings for later.
Copy Code Get-CASMailbox "Gurinder Singh" | Format-List EwsEnabled, ActiveSyncEnabled, MAPIEnabled, OWAEnabled, ImapEnabled, PopEnabled
- Retrieve the current size of the Recoverable Items folder. Note
the size so you can raise the quotas in Step 6.
Copy Code Get-MailboxFolderStatistics "Gurinder Singh" -FolderScope RecoverableItems | Format-List Name,FolderAndSubfolderSize
- Retrieve the current Managed Folder Assistant work cycle
configuration. Be sure to note the setting for later.
Copy Code Get-MailboxServer "My Mailbox Server" | Format-List Name,ManagedFolderWorkCycle
- Disable client access to the mailbox to make sure no changes
can be made to mailbox data for the duration of this procedure.
Copy Code Set-CASMailbox "Gurinder Singh" -EwsEnabled $false -ActiveSyncEnabled $false -MAPIEnabled $false -OWAEnabled $false -ImapEnabled $false -PopEnabled $false
- To make sure no items are deleted from the Recoverable Items
folder, increase the Recoverable Items quota, increase the
Recoverable Items warning quota, and set the deleted item retention
period to a value higher than the current size of the user's
Recoverable Items folder. This is particularly important for
preserving messages for mailboxes placed on litigation hold. We
recommend raising these settings to twice their current size.
Copy Code Set-Mailbox "Gurinder Singh" -RecoverableItemsQuota 50Gb -RecoverableItemsWarningQuota 50Gb -RetainDeletedItemsFor 3650 -ProhibitSendQuota 50Gb -ProhibitSendRecieveQuota 50Gb -UseDatabaseQuotaDefaults $false -UseDatabaseRetentionDefaults $false
- Disable the Managed Folder Assistant on the Mailbox server.
Copy Code Set-MailboxServer MyMailboxServer -ManagedFolderWorkCycle $null
Important: If the mailbox resides on a mailbox database in a database availability group (DAG), you must disable the Managed Folder Assistant on each DAG member that hosts a copy of the database. If the database fails over to another server, this prevents the Managed Folder Assistant on that server from deleting mailbox data. - Disable single item recovery and remove the mailbox from
litigation hold.
Copy Code Set-Mailbox "Gurinder Singh" -SingleItemRecoveryEnabled $false -LitigationHoldEnabled $false
Important: After you run this command, it may take up to one hour to disable single item recovery or litigation hold. We recommend that you perform the next step only after this period has elapsed. - Copy items from the Recoverable Items folder to a folder in the
Discovery Search Mailbox and delete the contents from the source
mailbox.
Copy Code Search-Mailbox -Identity "Gurinder Singh" -SearchDumpsterOnly -TargetMailbox "Discovery Search Mailbox" -TargetFolder "GurinderSingh-RecoverableItems" -DeleteContent
Copy Code Search-Mailbox -Identity "Gurinder Singh" -SearchQuery "Subject:'Your bank statement'" -SearchDumpsterOnly -TargetMailbox "Discovery Search Mailbox" -TargetFolder "GurinderSingh-RecoverableItems" -DeleteContent
Note: It isn't required to copy items to the Discovery Search Mailbox. You can copy messages to any mailbox. However, to prevent access to potentially sensitive mailbox data, we recommend copying messages to a mailbox that has access restricted to authorized records managers. By default, access to the default Discovery Search Mailbox is restricted to members of the Discovery Management role group. For details, see Understanding Multi-Mailbox Search. - If the mailbox was placed on litigation hold or had single item
recovery enabled earlier, enable these features again.
Copy Code Set-Mailbox "Gurinder Singh" -SingleItemRecoveryEnabled $true -LitigationHoldEnabled $true
Important: After you run this command, it may take up to one hour to enable single item recovery or litigation hold. We recommend that you enable the Managed Folder Assistant and allow client access (Steps 11 and 12) only after this period has elapsed. - Revert the following quotas to the values noted in Step 1:
- RecoverableItemsQuota
- RecoverableItemsWarningQuota
- ProhibitSendQuota
- ProhibitSendReceiveQuota
- UseDatabaseQuotaDefaults
- RetainDeletedItemsFor
- UseDatabaseRetentionDefaults
$false
. If the RetainDeletedItemsFor and UseDatabaseRetentionDefaults parameters were previously set to a different value, you must also revert them to the values noted in Step 1.
Copy Code Set-Mailbox "Gurinder Singh" -RetentionHoldEnabled $false -RetainDeletedItemsFor 14 -RecoverableItemsQuota unlimited -UseDatabaseQuotaDefaults $true
- RecoverableItemsQuota
- Enable the Managed Folder Assistant by setting the work cycle
back to the value you noted in Step 4. This example sets the work
cycle to one day.
Copy Code Set-MailboxServer MyMailboxServer -ManagedFolderWorkCycle 1
- Enable client access.
Copy Code Set-CASMailbox -ActiveSyncEnabled $true -EwsEnabled $true -MAPIEnabled $true -OWAEnabled $true -ImapEnabled $true -PopEnabled $true
For detailed syntax and parameter information, see the following topics:
Other Tasks
After you clean up the Recoverable Items folder, you may also want to: