Aracılığıyla paylaş


Configure Deleted Item retention and Recoverable Items quotas in Exchange Server

When a user deletes items from the Deleted Items default folder by using the Delete, Shift+Delete, or Empty Deleted Items Folder actions, the items are moved to the Recoverable Items\Deletions folder. The duration that deleted items remain in this folder is based on the deleted item retention settings configured for the mailbox database or the mailbox. By default, a mailbox database is configured to retain deleted items for 14 days, and the recoverable items warning quota and recoverable items quota are set to 20 gigabytes (GB) and 30 GB respectively.

Note

Before the retention time for deleted items elapses,Outlook and Outlook on the web users can recover deleted items by using the Recover Deleted Items feature. To learn more about these features, see the "Recover deleted items" topic for Outlook for Windows or Outlook on the web.

You can use the Exchange Management Shell to configure deleted item retention settings and recoverable items quotas for a mailbox or mailbox database. Deleted item retention settings are ignored when a mailbox is placed on In-Place Hold or litigation hold.

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

What do you need to know before you begin?

Tip

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

Configure deleted item retention for a mailbox

Use the Exchange admin center (EAC) to configure deleted item retention for a mailbox

  1. Navigate to Recipients > Mailboxes.

  2. In the list view, select a mailbox, and then click Edit Edit icon..

  3. On the mailbox property page, click Mailbox usage, click More options, and then select one of the following:

    • Use the default retention settings from the mailbox database: Use the deleted item retention setting that's configured for the mailbox database.

    • Customize the settings for this mailbox: Configure deleted item retention settings for the mailbox.

    • *Keep deleted items for (days): Displays the length of time that deleted items are retained before they're permanently deleted and can't be recovered by the user. When the mailbox is created, this value is based on the deleted item retention settings configured for the mailbox database. By default, a mailbox database is configured to retain deleted items for 14 days. The value range for this property is from 0 through 24,855 days.

    • Don't permanently delete items until the database is backed up: Check this box to prevent mailboxes and email messages from being deleted until after the mailbox database on which the mailbox is located has been backed up.

    default retention settings.

Configure deleted item retention for a mailbox database

Use the Exchange admin center (EAC) to configure deleted item retention for a mailbox database

  1. Navigate to Servers > Databases.

  2. In the list view, select a mailbox database, and then click Edit Edit icon..

  3. On the mailbox database property page, click Limits, and then select one of the following:

    • *Keep deleted items for (days): Displays the length of time that deleted items are retained before they're permanently deleted and can't be recovered by the user. When a mailbox is created, this value is based on the deleted item retention settings configured for the mailbox database. By default, a mailbox database is configured to retain deleted items for 14 days. The value range for this property is from 0 through 24,855 days.

    • Don't permanently delete items until the database is backed up: Check this box to prevent mailboxes and email messages from being deleted until after the mailbox database on which the mailbox is located has been backed up.

Use the Exchange Management Shell to configure deleted item retention for a mailbox

This example configures April Stewart's mailbox to retain deleted items for 30 days and until after the mailbox database on which the mailbox is located has been backed up.

Set-Mailbox -Identity - "April Stewart" -RetainDeletedItemsFor 30 -RetainDeletedItemsUntilBackup $true

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

Use the Exchange Management Shell to configure recoverable items quotas for a mailbox

Note

You can't use the EAC to configure recoverable items quotas for a mailbox.

This example configures a recoverable items warning quota of 12 GB and a recoverable items quota of 15 GB for April Stewart's mailbox.

Set-Mailbox -Identity "April Stewart" -RecoverableItemsWarningQuota 12GB -RecoverableItemsQuota 15GB -UseDatabaseQuotaDefaults $false

Note

To configure a mailbox to use different recoverable items quotas than the mailbox database in which it resides, you must set the UseDatabaseQuotaDefaults parameter to $false.

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

Use the Exchange Management Shell to configure deleted item retention for a mailbox database

Note

You can't use the EAC to configure deleted item retention for a mailbox database.

This example configures a deleted item retention period of 10 days for the mailbox database MDB2 and the setting to retain deleted items until the mailbox database has been backed up.

Set-MailboxDatabase -Identity MDB2 -DeletedItemRetention 10 -RetainDeletedItemsUntilBackup $true

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

Use the Exchange Management Shell to configure recoverable items quotas for a mailbox database

Note

You can't use the EAC to configure recoverable items quotas for a mailbox database

This example configures a recoverable items warning quota of 15 GB and a recoverable items quota of 20 GB on mailbox database MDB2.

Set-MailboxDatabase -Identity MDB2 -RecoverableItemsWarningQuota 15GB -RecoverableItemsQuota 20GB

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