Change Exchange Online deleted items retention period (2024)

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. A mailbox is configured to retain deleted items for 14 days by default. In this article, we will show how to change the recoverable items\deletetion folder to a maximum of 30 days.

Table of contents

  • Recover deleted items
  • Check recover deleted items
  • Change deleted items retention period for single mailbox
  • Change deleted items retention period for all mailboxes
  • Configure mailbox plan deleted items retention
  • Conclusion

Recover deleted items

When the user deletes a mailbox item such as an email message, a contact, a calendar appointment, or a task in Outlook and Outlook on the web, the item will go to the Deleted Items folder.

A mailbox item is deleted and moved to the Recoverable Items folder when a user does one of the following:

  • Deletes an item from the Deleted Items folder
  • Empties the Deleted Items folder
  • Permanently deletes an item by selecting it and pressing Shift+Delete

Check recover deleted items

To check the Recover Deleted Items in Outlook:

  1. Start Outlook
  2. Click on Deleted Items
  3. Select Recover items recently removed from this folder

The Recover Deleted Items window will appear with the deleted messages and the date the user deleted them.

Note: The deleted items in the recovery folder are 14 days, and the maximum limit you can set is 30 days. You can restore and purge one item, multiple items, or all items.

Change Exchange Online deleted items retention period (1)

Change deleted items retention period for single mailbox

Connect to Exchange Online PowerShell. Run the Get-Mailbox cmdlet to check the deleted items retention period for the single user.

The retention period for the user is set for 14 days, which is the default.

PS C:\> Get-Mailbox "amanda.morgan@exoip.com" | ft Name,RetainDeletedItemsForName RetainDeletedItemsFor---- ---------------------Amanda Morgan 30.00:00:00

Run the Set-Mailbox cmdlet to set the deleted items retention period for a single user.

PS C:\> Set-Mailbox "amanda.morgan@exoip.com" -RetainDeletedItemsFor "30"

In the next step, we will look at how to extend the deleted items retention period for all the users

Change deleted items retention period for all mailboxes

Run the Get-Mailbox cmdlet to check the deleted items retention period for all users.

PS C:\> Get-Mailbox -ResultSize Unlimited | ft Name,RetainDeletedItemsForName RetainDeletedItemsFor---- ---------------------Amanda Morgan 30.00:00:00Neil Graham 14.00:00:00Amelia Nash 14.00:00:00Curt Berry 14.00:00:00Thomas Wilkins 14.00:00:00Craig Hansen 14.00:00:00

Run the Set-Mailbox cmdlet to set the deleted items retention period for all mailboxes.

PS C:\> Get-Mailbox -ResultSize Unlimited | Set-Mailbox -RetainDeletedItemsFor "30"

Suppose you only want to set the retention period for all the user mailboxes.

PS C:\> Get-Mailbox -ResultSize Unlimited -Filter "RecipientTypeDetails -eq 'UserMailbox'" | Set-Mailbox -RetainDeletedItemsFor "30"

Configure mailbox plan deleted items retention

The above commands only apply to existing mailboxes. So if you create new user mailboxes, the default items retention period is set to the default 14 days.

Note: The global configuration for the deleted items retention period is stored in the Mailbox Plans assigned to the mailboxes.

Run the Get-MailboxPlan cmdlet to check the retained deleted items for value.

PS C:\> Get-MailboxPlan | ft Name, RetainDeletedItemsForName RetainDeletedItemsFor---- ---------------------ExchangeOnline-c958f8fd-de76-4fa7-8753-b02d2582655c 14.00:00:00ExchangeOnlineDeskless-3d2415cd-6a13-45e1-b89d-6bdb7d147cd2 14.00:00:00ExchangeOnlineEnterprise-5c9153a0-13db-4e32-95e6-0725fe1cab7d 14.00:00:00ExchangeOnlineEssentials-87425ef5-91d7-4dd5-b133-5c6e96c0daf1 14.00:00:00

Change the Mailbox Plan to 30 days so new user creation will have the deleted items retention period automatically set for 30 days.

PS C:\> Get-MailboxPlan | Set-MailboxPlan -RetainDeletedItemsFor "30"

Note: The above change will only apply to new mailboxes. You still have to modify the deleted items retention period for existing mailboxes with the Set-Mailbox cmdlet, as shown in the first section.

You successfully did configure the mailbox plan to retain deleted items for 30 days.

Read more: Permanently delete users from Microsoft 365 »

Conclusion

You learned how to change Exchange Online deleted items retention period with PowerShell. First, change the mailbox retention period for a single mailbox or all mailboxes. I recommend setting the deleted retention items for all mailboxes. After that, configure the mailbox plan retention deleted items for 30 days so new mailbox creation will have this 30-day setting automatically applied.

Did you enjoy this article? You may also like Reset Office 365 delegate access with PowerShell. Don’t forget to follow us and share this article.

Change Exchange Online deleted items retention period (2024)
Top Articles
401(k) Early Withdrawals: Everything You Need to Know
VFFVX - Vanguard Target Retirement 2055 Fund
English Bulldog Puppies For Sale Under 1000 In Florida
Katie Pavlich Bikini Photos
Gamevault Agent
Pieology Nutrition Calculator Mobile
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Compare the Samsung Galaxy S24 - 256GB - Cobalt Violet vs Apple iPhone 16 Pro - 128GB - Desert Titanium | AT&T
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Craigslist Dog Kennels For Sale
Things To Do In Atlanta Tomorrow Night
Non Sequitur
Crossword Nexus Solver
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Energy Healing Conference Utah
Geometry Review Quiz 5 Answer Key
Hobby Stores Near Me Now
Icivics The Electoral Process Answer Key
Allybearloves
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Pearson Correlation Coefficient
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Marquette Gas Prices
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Vera Bradley Factory Outlet Sunbury Products
Pixel Combat Unblocked
Movies - EPIC Theatres
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Mia Malkova Bio, Net Worth, Age & More - Magzica
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Where Can I Cash A Huntington National Bank Check
Topos De Bolos Engraçados
Sand Castle Parents Guide
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Hello – Cornerstone Chapel
Stoughton Commuter Rail Schedule
Nfsd Web Portal
Selly Medaline
Latest Posts
Article information

Author: Tish Haag

Last Updated:

Views: 5776

Rating: 4.7 / 5 (47 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Tish Haag

Birthday: 1999-11-18

Address: 30256 Tara Expressway, Kutchburgh, VT 92892-0078

Phone: +4215847628708

Job: Internal Consulting Engineer

Hobby: Roller skating, Roller skating, Kayaking, Flying, Graffiti, Ghost hunting, scrapbook

Introduction: My name is Tish Haag, I am a excited, delightful, curious, beautiful, agreeable, enchanting, fancy person who loves writing and wants to share my knowledge and understanding with you.