Applies to: Exchange Server 2013
Topic Last Modified: 2012-12-11
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 Recoverable Items Folder.
How you clean up a mailbox's Recoverable Items folder depends on whether the mailbox is placed on In-Place Hold or litigation hold, or had single item recovery enabled:
- If a mailbox isn't placed on In-Place Hold or 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 In-Place Hold or litigation hold or
has single item recovery enabled, it's important to preserve the
mailbox data until the hold is removed or single item recovery is
disabled. In this case, you need to perform more detailed steps to
clean up the Recoverable Items folder.
To learn more about In-Place Hold and litigation hold, see In-Place Hold. To learn more about single item recovery, see "Single Item Recovery" in Recoverable Items Folder.
To learn more about the Recoverable Items folder, see Recoverable Items Folder.
What do you need to know before you begin?
- Estimated time to complete this procedure: 30 minutes. This may
vary depending on the size of the Recoverable Items folder
- You need to be assigned permissions before you can perform this
procedure or procedures. To see what permissions you need, see the
"Delete mailbox content" entry in the Messaging Policy and
Compliance Permissions topic.
- 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 Recoverable Items
Folder.
- You can't use the Exchange Administration Center (EAC) to
perform these procedures. You must use the Shell.
- For information about keyboard shortcuts that may apply to the
procedures in this topic, see Keyboard Shortcuts in
the Exchange Admin Center.
Having problems? Ask for help in the Exchange forums. Visit the forums at: Exchange Server, Exchange Online, or Exchange Online Protection
Use the Shell to delete items from the Recoverable Items folder for mailboxes that aren't placed on In-Place Hold or 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 In-Place Hold or litigation hold or have single item recovery enabled
You need to be assigned permissions before you can perform this procedure or procedures. To see what permissions you need, see the "Delete mailbox content" entry in the Messaging Policy and Compliance Permissions topic.
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 In-Place Hold or 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 In-Place Hold or
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 In-Place eDiscovery. - 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:
How do you know this worked?
To verify that you have successfully cleaned up the Recoverable Items folder of a mailbox, use Get-MailboxFolderStatistics cmdlet the check the size of the Recoverable Items folder.
This example retrieves the size of the Recoverable Items folder and its subfolders and an item count in the folder and each subfolder.
Copy Code | |
---|---|
Get-MailboxFolderStatistics -Identity "Gurinder Singh" -FolderScope RecoverableItems | Format-Table Name,FolderAndSubfolderSize,ItemsInFolderAndSubfolders -Auto |