MSP StockroomFind a guide, template or tool…/
Curated SOPs / Backup and recovery

BAK Curated SOP / Backup and recovery

Check Microsoft 365 data retention gaps before relying on the recycle bin as backup

Write down, for one client, how long deleted mail, files, sites, groups and users can be brought back in Microsoft 365, and where that falls short of what the client expects.

Low risk / Read-only / Reviewed December 1, 2026

Written and maintained by MSP Stockroom. Nobody else edits it.

On this page

Before you run anything: read every command first and understand what it does. Replace example names, domains and addresses with your own. Try it on a test device or tenant before a client's. Keep client names, passwords and keys out of tickets and chat.

Purpose

Write down, for one client, how long deleted mail, files, sites, groups and users can be brought back in Microsoft 365, and where that falls short of what the client expects. Many clients assume the recycle bin is a backup. It is not: each place keeps deleted data for a fixed time, then removes it for good. Use it when you take on a new client, when a client asks whether they need a backup product, and at each yearly review. Read-only: nothing in this SOP changes the tenant.

Scope and prerequisites

  • Run by the client's assigned engineer.
  • Needs an account that can view settings in the Microsoft 365 admin center, the SharePoint admin center and the Microsoft Purview portal.
  • For step 3, an account that can view mailbox settings in Exchange Online, and the Exchange Online PowerShell module installed from the PowerShell Gallery.
  • Ask the client how far back they expect to recover a deleted email, file or user, and write their answer down before you start.
  • Store the results in your documentation platform, never in this library.

Steps

  1. In the Microsoft 365 admin center, open Billing, then Licenses, and note the plans the client has. Retention policies need a plan that includes them, such as Microsoft 365 Business Premium, Microsoft 365 E3 or E5, Office 365 E3 or E5, Exchange Online Plan 2 or SharePoint Plan 2.
  2. In the Microsoft Purview portal, open Data lifecycle management, then Microsoft 365, then Retention policies. For each policy, note which locations it covers (Exchange, SharePoint, OneDrive, Microsoft 365 groups, Teams) and how long it keeps content. A retention policy overrides the recycle bin times below. No policies means the default times are all the client has.
  3. Check how long each mailbox keeps deleted items:
    # You will be asked to sign in to the client's tenant.
    Connect-ExchangeOnline
    
    Get-EXOMailbox -ResultSize Unlimited -Properties RetainDeletedItemsFor,
        SingleItemRecoveryEnabled, LitigationHoldEnabled |
        Select-Object UserPrincipalName, RetainDeletedItemsFor, SingleItemRecoveryEnabled,
            LitigationHoldEnabled
    
    Disconnect-ExchangeOnline

    Read the result:

    • RetainDeletedItemsFor 14.00:00:00: the default. Items removed from Deleted Items can be recovered for 14 days. The most it can be set to is 30 days.
    • SingleItemRecoveryEnabled False: a user can purge items for good before the period ends. Record it as a finding.
    • LitigationHoldEnabled True: deleted items are kept with no time limit while the hold is on.
    • The Deleted Items folder itself has no time limit by default, but users can empty it. Junk Email keeps items for 30 days.
  4. In the SharePoint admin center, open Settings, then the OneDrive retention setting for deleted users, and note the number of days. The default is 30 days and it can be set between 30 and 3650 days. The count starts when the user is deleted from Microsoft Entra ID, not when they are blocked or lose their licence.
  5. Note the fixed times that apply to every tenant:
    • SharePoint and OneDrive files: 93 days in total across the first-stage and second-stage recycle bins, counted from when the file was first deleted.
    • OneDrive Files Restore: rolls a whole OneDrive back to a point in the last 30 days.
    • Deleted SharePoint sites: 93 days.
    • Deleted Microsoft 365 groups, with their Teams, SharePoint site and Planner: 30 days. This cannot be changed. Distribution groups cannot be restored this way.
    • Deleted users: 30 days in the Microsoft 365 admin center.
    • Deleted mailboxes: 30 days.
  6. Build a short table for the client with one row per data type: how long it can be recovered today, what happens after that, and how far back the client expects to go. Mark each row where the client expects longer than Microsoft 365 keeps it.

Verify

The client has a written table of recovery times for mail, files, sites, groups and users, with every gap marked, and has seen it. Each gap goes to the client contact as a question, not a change: do they accept it, add a retention policy, or add a backup product?

Rollback

Nothing to roll back; this SOP only reads. Changing deleted item retention, turning on single item recovery, changing the OneDrive retention setting, adding a retention policy or buying a backup product are separate changes, made with the client's approval.

Notes

Content in the SharePoint and OneDrive recycle bins is not indexed, so searches do not find it. After the OneDrive retention period ends, the OneDrive sits in the site collection recycle bin for 93 days, and only a SharePoint Administrator can restore it with PowerShell. OneDrive accounts left unlicensed are archived after 93 days. See https://learn.microsoft.com/exchange/security-and-compliance/recoverable-items-folder/recoverable-items-folder, https://learn.microsoft.com/purview/retention-policies-sharepoint, https://learn.microsoft.com/sharepoint/retention-and-deletion and https://learn.microsoft.com/microsoft-365/admin/create-groups/restore-deleted-group for Microsoft's guidance.

Sources and notes

Curated SOP from the MSP Stockroom SOP library (curated/backup-recovery/check-microsoft-365-retention-gaps-before-relying-on-recycle-bins.md). Last reviewed December 1, 2026. Tested on: Not yet run; written for Microsoft 365 admin center, SharePoint admin center, Microsoft Purview portal; Exchange Online PowerShell module 3.x; PowerShell 7.4. Vendor screens and commands change; check the vendor documentation before you rely on a step. Found a mistake? See corrections.

Search the stockroom

↑ ↓ to choose · Enter to open · Esc to close

Open the full search page →