Forum Discussion
Nov 16, 2017
Extending the retention period of OneDrive for Business for a deleted user for 10 years
Hi All , As far as I know once a user's account is deleted as a part of his exit , the OneDrive deletion timer job will run and make his manager as the primary admin for his OneDrive for Business ...
Nitesh Ranjan
Jun 07, 2019Copper Contributor
VigneshGanesan Recently we had a similar issue and OneDrive got deleted after 45 days (retention set in our tenant). However for some critical reason we had to recover that so we found a power-shell to recover this from recycle bin (where it will be available for 83 days).
To find out if the site is in recycle bin, run the following commands
Connect-SPOService -Url https://cernerprod-admin.sharepoint.com [authenticate with the SPO admin creds]
Get-SPODeletedSite -IncludePersonalSite
=>you can save the output in the .txt file and see if any of the sites returned are matching the UPN for the deleted users
=>If yes, you can restore the sites using the command Restore-SPODeletedSite -Identity URL