Export (0) Print
Expand All
3 out of 4 rated this helpful - Rate this topic

Change the Deleted Item Retention Period for a Mailbox in Exchange Online

Exchange Online
 

Applies to: Exchange Online

Topic Last Modified: 2013-08-09

When a user deletes items from the default Deleted Items folder by using the Delete, Shift+Delete, or Empty Deleted Items Folder actions in Microsoft Outlook and Outlook Web App, the items are moved to the Recoverable Items folder, and into a subfolder named Deletions. The duration that deleted items are retained in this folder is based on the deleted item retention period configured for the mailbox. An Exchange Online mailbox is configured to retain deleted items for 14 days, by default. You can use the Shell to change this setting to a maximum of 30 days. If you need to retain deleted items for longer than 30 days, you can place the mailbox on In-Place Hold. Deleted item retention settings are ignored when a mailbox is placed on In-Place Hold. To place a mailbox on In-Place Hold, the mailbox needs an Exchange Online (Plan 2) user license. For more information, see In-Place Hold.

Before the retention time for a deleted item expires, Outlook and Office Outlook Web App users can recover or purge deleted items by using the Recover Deleted Items feature. To learn more about these features, see the "Recover deleted items" topic for Outlook or Outlook Web App.

If a user purges a deleted item, you can recover it before the deleted item retention period expires. For details, see Perform Single Item Recovery.

To learn more about deleted item retention, the Recoverable Items folder, In-Place Hold, and litigation hold, see Recoverable Items Folder.

tipTip:
Having problems? Ask for help in the Exchange forums. Visit the forums at: Exchange Server, Exchange Online, or Exchange Online Protection.

These examples increase the deleted item retention period to 30 days, which is the maximum duration for Exchange Online mailboxes. The default retention period is 14 days.

This example increases the deleted item retention period for the mailbox of Emily Maier.

Set-Mailbox -Identity "Emily Maier" -RetainDeletedItemsFor 30

This example increases the deleted item retention period for all user mailboxes in the organization.

Get-Mailbox -ResultSize unlimited -Filter {(RecipientTypeDetails -eq 'UserMailbox')} | Set-Mailbox -RetainDeletedItemsFor 30

For detailed syntax and parameter information, see Set-Mailbox.

To verify that you’ve changed the value for how long deleted items are to be retained, run one of the following commands.

Get-Mailbox <Name> | FL RetainDeletedItemsFor

Or

Get-Mailbox -ResultSize unlimited -Filter {(RecipientTypeDetails -eq 'UserMailbox')} | FL Name,RetainDeletedItemsFor
 
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.