In Office 365, when a user is deleted, his/her OneDrive will be automatically deleted after the given retention period which is by default 30 days. Only a Global Administrator or SharePoint Administrator can restore a deleted OneDrive and assign access to some other user.

All the shared content will be available as they were available before deletion of OneDrive.

Important: One Drive can be restored after 93 days of its deletion. If retention duration is 30 than a deleted OneDrive will be available for 123 days (30 days active, 93 days in recycle bin).

Restoration steps:

First you need to verify that the deleted User’s OneDrive still exist in recycle bin, for that you need to check that using below PowerShell

If you do not the url of deleted OneDrive then run below command which can return list of all deleted OneDrives.

Get-SPODeletedSite -IncludeOnlyPersonalSite | FT url

OneDrive all deleted powershell

If you know the url then pass Url to Get -SPODeletedSite cmdlet which can confirm the site availability.

Get-SPODeletedSite -Identity "https://mstechtalk-my.sharepoint.com/personal/ aamin_mstechtalk_com/"

Get deleted OneDrive

If the site is available in recycle bin, then you can follow below URL to restore it. The restoration process is very simple, just pass the OneDrive Url to Resotre-SPODeletedSite cmdlt.

Restore-SPODeletedSite -Identity https://MSTechTalk-my.sharepoint.com/personal/aamin_mstechtalk_com

Restore deleted Onedrive

You can also get an error message “Unable to find the deleted site”, there is a possibility that you have added ‘/’ at the end, just remove it and then restore OneDrive.

Restore deleted OneDrive error
Now the OneDrive is restored to an active state.

Adnan, a distinguished professional, boasts an impressive track record as a Microsoft MVP, having achieved this prestigious recognition for the eighth consecutive year since 2015. With an extensive career spanning over 18 years, Adnan has honed his expertise in various domains, notably excelling in SharePoint, Microsoft 365, Microsoft Teams, the .Net Platform, and Microsoft BI. Presently, he holds the esteemed position of Senior Microsoft Consultant at Olive + Goose. Notably, Adnan served as the MCT Regional Lead for the Pakistan Chapter from 2012 to 2017, showcasing his leadership and commitment to fostering growth within the tech community. His journey in the realm of SharePoint spans 14 years, during which he has undertaken diverse projects involving both intranet and internet solutions for both private and government sectors. His impact has transcended geographical boundaries, leaving a mark on projects in the United States and the Gulf region, often collaborating with Fortune 500 companies. Beyond his roles, Adnan is a dedicated educator, sharing his insights and knowledge as a trainer. He also passionately advocates for technology, frequently engaging with the community through speaking engagements in various forums. His multifaceted contributions exemplify his dedication to the tech field and his role in driving its evolution.

Leave a Reply