
:max_bytes(150000):strip_icc()/07-how-to-delete-notebooks-in-onenote-d92eccf7de2141c49dc70e36884c8f80.jpg)
If the OneDrive appears in the results, it can be restored. If you don't know the URL of the deleted OneDrive, run the following command: Get-SPODeletedSite -IncludeOnlyPersonalSite | FT url You can find their username on the Active users (or Deleted users) page in the Microsoft 365 admin center. If you know the URL of the OneDrive, run the following command: Get-SPODeletedSite -Identity Ī user's OneDrive URL is based on their username. To learn how, see Getting started with SharePoint Online Management Shell.ĭetermine if the OneDrive is available for restore. If you installed a previous version of the SharePoint Online Management Shell, go to Add or remove programs and uninstall "SharePoint Online Management Shell."Ĭonnect to SharePoint as a global admin or SharePoint admin in Microsoft 365. If you deleted the user more than 30 days ago, the user will no longer appear in the Microsoft 365 admin center, and you'll need to use PowerShell to restore the OneDrive.ĭownload the latest SharePoint Online Management Shell. To learn how, see Restore a user in Microsoft 365. If the user was deleted within 30 days, you can restore the user and all their data from the Microsoft 365 admin center. Restore a deleted OneDrive when the deleted user no longer appears in the Microsoft 365 admin center At the end of the time, the OneDrive will be in a deleted state for 93 days and can only be restored by a global or SharePoint admin.įor info about using Files Restore to restore a OneDrive to a previous point in time, see Restore your OneDrive.įor info about restoring items from the recycle bin in OneDrive, see Restore deleted files or folders. During this time, shared content can still be accessed by other users. (For info, see Set the default file retention for deleted OneDrive users.) The default is 30 days. When you delete a user in the Microsoft 365 admin center (or when a user is removed through Active Directory synchronization), the user's OneDrive will be retained for the number of days you specify in the SharePoint admin center.
