How long to keep a leaver’s OneDrive

Keep deleted users’ OneDrive for 90 days or more (up to 3,650).

Every Microsoft 365 security check · Collaboration & Sharing · NL-COL-029

What this check looks at

Checks that the OneDrive of a deleted account is kept for at least 90 days before Microsoft deletes it (the default is 30).

When a person’s account is deleted, Microsoft keeps their OneDrive for a set number of days before deleting it for good. During that time the files can still be reached by the person’s manager or an administrator; afterwards they cannot be recovered. Microsoft’s default is 30 days.

The check reads the SharePoint settings and passes when a deleted user’s OneDrive is kept for 90 days or more. It fails when the period is shorter, and reports not checked when the setting was not returned.

Why it matters

When someone leaves and their account is deleted, their OneDrive goes with it after the retention period. Thirty days is often too short for a manager to find the files that only lived there, and once it is gone it cannot be brought back.

Files that only ever lived in a leaver’s OneDrive (a working copy of a contract, notes for a client, the spreadsheet everyone used) are often missed until someone asks for them weeks later. Thirty days is short for that question to come up.

A longer period costs nothing extra in storage for most tenants and changes nothing for current staff. It does not replace a retention policy or a backup, but it gives the offboarding process room to work.

How to fix it

Where: SharePoint admin centre → Settings → OneDrive retention

Before you start

  • Nothing to prepare: the change only applies to OneDrives of accounts deleted from now on.

Step by step

  1. See the current period. In the SharePoint admin centre open Settings → OneDrive retention and note the number of days, or run Get-SPOTenant | Select OrphanedPersonalSitesRetentionPeriod.
  2. Choose a period. Agree a period with the business that covers how long it takes to notice missing files after someone leaves; 90 days is a sensible minimum, and up to 3,650 days is allowed.
  3. Set the period. Enter the number of days under "Days to retain a deleted user’s OneDrive" and save, or run Set-SPOTenant -OrphanedPersonalSitesRetentionPeriod 90 (or more).
  4. Use it when people leave. Make the offboarding checklist give the leaver’s manager access to their OneDrive before the account is deleted, so the files are found while they are still there.
  5. Confirm the change. The OneDrive retention page shows the new number of days. The next assessment passes.

With PowerShell

Set-SPOTenant -OrphanedPersonalSitesRetentionPeriod 90

What users will notice

A leaver’s OneDrive stays available to their manager for longer before Microsoft deletes it.

How to confirm it worked

SharePoint admin centre → Settings → OneDrive retention shows 90 days or more.

Frameworks and controls

This check maps to controls in 6 frameworks. Passing it is evidence that the setting is in place, not a certification against any of them.

The frameworks and controls NL-COL-029 maps to
FrameworkControl
NCSC CAFB3.c Stored data
Zero TrustData
ISO 27001:2022A.5.33 Protection of records
CIS Controls v8.13.4 Enforce data retention (IG1)
NIST CSF 2.0PR.DS-11: Backups of data are created, protected, maintained, and tested
NCSC 10 StepsData security

The framework mappings were last checked against the published standards in October 2026.

Microsoft’s documentation

The full Microsoft 365 security checklist, worst first

ConfigCheckup

Check this in every tenant.

ConfigCheckup runs this check on every tenant you connect and gives you a step-by-step fix guide. The next assessment confirms the fix.

14 days of daily monitoring and alerts, every finding with its fix guide, and reports on up to 3 tenants, from your first connected tenant. No card. Then choose the plan that fits.Where this check fits: Microsoft 365 security assessment for MSPs