How to Recover a Deleted OneDrive Site After Default Retention Expiry (No Retention Policy Configured)
However, administrators may still be able to recover the site if it remains available in the SharePoint deleted sites container — before permanent backend purging occurs.
🔍 The Symptoms / Error Message
⚠️ What You May Experience
- OneDrive site no longer accessible — URL returns “Site not found”
- User account has been deleted from Microsoft 365
- Entire OneDrive site and contents appear missing
- No retention policies or third-party backup solutions were configured
🧠 Root Cause
💡 Why This Happens
- Deleting a Microsoft 365 user automatically triggers the deletion of the associated OneDrive site
- OneDrive data is retained for a default soft-delete period before transitioning to permanent deletion
- Without any of the following in place, no data protection is applied:
- Microsoft Purview Retention Policies
- Litigation Hold or eDiscovery Hold
- Third-party backup solution
✅ Recovery Window
In some scenarios, the OneDrive site may still exist in the SharePoint Deleted Sites collection, allowing recovery using administrative tools before it is fully purged from the backend.
🛠️ Step-by-Step Resolution
Connect to SharePoint Online
Authenticate to your SharePoint Online admin endpoint using the SPO PowerShell module.
Connect-SPOService -Url https://<tenant>-admin.sharepoint.com
Check for Deleted OneDrive Sites
List all deleted sites including personal OneDrive sites to identify the affected user’s site URL.
Get-SPODeletedSite -IncludePersonalSite
💡 What to Look For
Identify the OneDrive site URL associated with the deleted user — it typically follows the format:
https://<tenant>-my.sharepoint.com/personal/<username>_domain_com
Restore the OneDrive Site
Restore the deleted site from the SharePoint deleted sites container using its URL.
Restore-SPODeletedSite -Identity <OneDriveSiteURL>
Assign Site Collection Administrator Access
Grant an admin account access to the recovered site to validate data and perform any required migration or backup.
Set-SPOUser -Site <OneDriveSiteURL> -LoginName admin@yourdomain.com -IsSiteCollectionAdmin $true
✅ What This Does
Grants the specified admin full Site Collection Administrator access to the recovered OneDrive site — allowing validation of content and any further data management actions.
Validate the Recovered Site
After restoration, confirm the site and its contents are accessible and intact.
📋 Verification Checklist
- Open the OneDrive site URL in a browser
- Verify files and folders are visible and accessible
- Confirm data integrity — content appears as expected
Perform Post-Recovery Actions
Take the appropriate next steps based on your organisation’s data management requirements.
💡 Recommended Post-Recovery Actions
- Data migration — move content to a new user account or shared location
- Ownership transfer — reassign the site or specific files to the appropriate team
- Backup — export or archive critical data before the site is removed again
💡 Best Practices & Recommendations
- Always configure Microsoft Purview retention policies for OneDrive to prevent permanent data loss after user account deletion
- Implement third-party backup solutions for critical users and departments as an additional safety net
- Avoid relying solely on the default OneDrive retention behaviour for recovery scenarios — it is not a substitute for a formal data protection strategy
📚 References & Further Reading
- 🔗 Restore a Deleted OneDrive — Microsoft Learn
- 🔗 Delete a Site Collection in SharePoint Online — Microsoft Learn
- 🔗 Learn About Retention Policies and Labels — Microsoft Purview
✅ Key Takeaway
Even when no retention policies are configured and the default retention window has passed, administrators should always check the deleted sites container first:
Get-SPODeletedSite -IncludePersonalSite
If the site is still present, it can often be restored successfully using PowerShell before permanent backend deletion occurs.
