If a work or school account is deleted from the Microsoft Office 365 admin center, or is removed through Active Directory synchronization, their OneDrive site is marked for deletion. After the 30 day retention period, their site is moved to their recycle bin.
This recycle bin is not visible to Admin users, and it is not possible to restore or recover deleted OneDrive sites through the Admin UI.
Note: OneDrive sites remain in the recycle bin for 90 days before being permanently deleted.
Administrators should use PowerShell to confirm that the OneDrive site is in the recycle bin and is available to be restored.
Note: To perform the steps below you will need to have the SharePoint Management Shell installed.
- Open PowerShell
- Connect to the service:
- Connect-SPOService -Url <https://yourdomain-admin.sharepoint.com>
- Sign in with administrator credentials
- Determine if the site is available for restore
- Get-SPODeletedSite -IncludeOnlyPersonalSite | FT url
- If the site appears in the results, it is in the recycle bin and available to be restored
- Once the site is located, restore the site to an active state
- Restore-SPODeletedSite -Identity <ODBSiteURL>
- Assign an owner to the site to access the desired data
- Set-SPOUser -Site <ODBSiteURL> -LoginName <UPNofDesiredAdmin> -IsSiteCollectionAdmin $True
You will now be able to access the restored site with the user that was assigned as site collection administrator and access any desired data.
Article ID: 4035873 - Last Review: 2017, ജൂലൈ 19 - Revision: 9