fbpx

Set deleted items retention period

Introduction

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.

User Impact

Low
There will be no noticeable impact to users. Retaining the deleted items for longer will use up the mailboxes storage quota.

Admin Portal Reference

This setting must be switched on via PowerShell. The following cmdlet is run on the tenants Exchange Online against each mailbox you wish to target.

Set-Mailbox -Identity <Mailbox> -RetainDeletedItemsFor 30

If Action is set to Notify

We report the setting is compliant if RetainDeletedItemsFor attribute for the mailbox is set to match the parameter in MSPMagic.

We report the setting is non-compliant if RetainDeletedItemsFor attribute for the mailbox is does not match the parameter in MSPMagic.

If Action is set to Enforce

We report the setting is compliant if RetainDeletedItemsFor attribute for the mailbox is set to match the parameter in MSPMagic.

We report the setting is compliant-fixed if RetainDeletedItemsFor attribute for the mailbox is did not match the parameter in MSPMagic but was updated to match.

Get Started!

The first three tenants are free! No credit card required.

Sign Up