Restore a deleted OneDrive - SharePoint in Microsoft 365 (2024)

  • Article

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 is retained for the number of days you specify in the SharePoint admin center. (For info, see Set the default file retention for deleted OneDrive users.) The default is 30 days. During this time, other users can still access shared content. At the end of the time period, the OneDrive remains in a deleted state for 93 days and can only be restored by a SharePoint Administrator.

For info about using Files Restore to restore a OneDrive to a previous point in time, see Restore your OneDrive.

For info about restoring items from the recycle bin in OneDrive, see Restore deleted files or folders.

Restore a deleted OneDrive when the deleted user no longer appears in the Microsoft 365 admin center

If the user was deleted within 30 days, you can restore the user and all their data from the Microsoft 365 admin center. To learn how, see Restore a user 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 need to use PowerShell to restore the OneDrive.

  1. Download the latest SharePoint Online Management Shell.

    Note

    If you installed a previous version of the SharePoint Online Management Shell, go to Add or remove programs and uninstall "SharePoint Online Management Shell."

  2. Connect to SharePoint as a SharePoint Administrator in Microsoft 365. To learn how, see Getting started with SharePoint Online Management Shell.

  3. Determine if the OneDrive is available for restore.

    • If you know the URL of the OneDrive, run the following command:

      Get-SPODeletedSite -Identity <URL>

      A user's OneDrive URL is based on their username. For example,https://contoso-my.sharepoint.com/personal/user1_contoso_com. You can find their username on the Active users (or Deleted users) page in the Microsoft 365 admin center.

    • If you don't know the URL of the deleted OneDrive, run the following command:

      Get-SPODeletedSite -IncludeOnlyPersonalSite | FT url
    • If the OneDrive appears in the results, it can be restored.

  4. Restore the OneDrive to an active state:

    Restore-SPODeletedSite -Identity <URL>
  5. Assign an administrator to the OneDrive to access the needed data:

    Set-SPOUser -Site <URL> -LoginName <UPNofDesiredAdmin> -IsSiteCollectionAdmin $True

For more info about these cmdlets, see Get-SPODeletedSite and Restore-SPODeletedSite.

Note

When a OneDrive is restored, it will continue to remain available until it's explicitly deleted.

Permanently delete a OneDrive

After you recover the data you need from the OneDrive, we recommend that you permanently delete the OneDrive by running the following command:

Remove-SPOSite -Identity <URL>Remove-SPODeletedSite -Identity <URL>

Caution

When you permanently delete a OneDrive, you will not be able to restore it.

See also

OneDrive retention and deletion
Manage site redirects

Restore a deleted OneDrive - SharePoint in Microsoft 365 (2024)

FAQs

How do I recover a deleted OneDrive account on o365? ›

Restore a deleted OneDrive when the deleted user no longer appears in the Microsoft 365 admin center
  1. Download the latest SharePoint Online Management Shell. ...
  2. Connect to SharePoint as a SharePoint Administrator in Microsoft 365. ...
  3. Restore the OneDrive to an active state: Restore-SPODeletedSite -Identity <URL>
Jun 4, 2024

How do I restore a SharePoint file in Office 365? ›

Restore items from the recycle bin of SharePoint in Microsoft 365 or SharePoint Server
  1. In the Quick Launch bar navigation on the bottom left of the screen, click Recycle bin. ...
  2. On the Recycle bin page, click the box to the left of the items or files you want to restore.
  3. Click Restore.

How do I recover a deleted OneDrive? ›

Go to the OneDrive website. At the top of the page, select Settings > Restore your OneDrive from the left navigation. On the Restore page, select a date from the dropdown list or select Custom date and time. Use the activity chart and activity feed to review the recent activities that you want to undo.

Can a deleted SharePoint be recovered? ›

A SharePoint site collection administrator can view and restore deleted items from the site collection Recycle Bin to their original locations. If an item is deleted from the site collection Recycle Bin, or it exceeds the retention time, it is permanently deleted.

What happens if Microsoft deleted my OneDrive? ›

After seven days, the OneDrive for the deleted user is moved to the site collection recycle bin, where it is kept for 93 days. During this time, users will no longer be able to access any shared content in the OneDrive. To restore the OneDrive, you need to use PowerShell. For info, see Restore a deleted OneDrive.

How to recover deleted files in Office 365? ›

Using Recoverable Items Folder: Upto 28 Days
  1. Right-click Deleted Items and select Recover Deleted Items from the menu.
  2. Search for the file you wish to recover.
  3. Select the file and choose Recover.
May 23, 2024

Where do deleted OneDrive files go? ›

Files deleted from OneDrive are kept in the OneDrive Recycle Bin for 30 days for personal accounts. The files can be restored to OneDrive before then, or you can permanently delete them from your OneDrive. Note: If your recycle bin is full, the oldest items will be automatically deleted after three days.

Where is the OneDrive recycle bin located? ›

Locate Recycle Bin

Click on the OneDrive icon. Notice the Recycle Bin in the left navigation. Click the Files icon to see all of your files and folders.

How do I recover deleted files from OneDrive not in the recycle bin? ›

If you do not see the file in the recycle bin, scroll to the bottom of the list, and click the link to "Check the Second stage recycle bin". Click the circle to the left of each file you wish to restore to select them. Click "Restore" from the menu at the top of the page to restore the file(s).

How to restore SharePoint site from backup? ›

Restore a SharePoint site as a new site
  1. Locate the site or subsite you want to restore. ...
  2. Point to the site, and on the right, select ••• > Restore.
  3. Select Restore site as a new site (with new URL) and click Next.
  4. In the field New site, enter a new name for your site. ...
  5. Select how to handle versions, then click Next.
Mar 22, 2024

How do I restore SharePoint history? ›

Using the Version History Window
  1. Step 1: Open the Version History Window. Go to the SharePoint page you want to use and click Page Details. Select Version History.
  2. Step 2: Restore a Page Version. Select the page version you want to restore. ...
  3. Step 3: Publish / Republish your page. Click the cross icon.
Feb 28, 2024

Where is my SharePoint recycle bin? ›

If you don't see the Recycle Bin on the Quick Launch bar, follow these steps:
  • Click Settings. , and then click Site Content.
  • The Recycle bin is in the top right portion of the Site Content page.

How do I recover a deleted account on m365? ›

You must have admin permissions in Microsoft 365 to do this.
  1. In the admin center, go to the Users > Deleted users page.
  2. On the Deleted users page, select the user that you want to restore, and then select Restore user.
  3. On the Restore page, follow the instructions to set the password and select Restore.
Jul 23, 2024

What happens when Office 365 account is deleted? ›

When a user's license is removed, all data that is associated with that user account is held for 30 days. After the 30 day grace period, the data is deleted and can't be recovered, except for documents that are saved on SharePoint Online.

Top Articles
Which Is Right for You? – Smart Cents by FirstBank
Getting started with Development on Polkadot | Rise In
Katie Pavlich Bikini Photos
Gamevault Agent
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Free Atm For Emerald Card Near Me
Craigslist Mexico Cancun
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Doby's Funeral Home Obituaries
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Select Truck Greensboro
Things To Do In Atlanta Tomorrow Night
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Craigslist In Flagstaff
Shasta County Most Wanted 2022
Energy Healing Conference Utah
Testberichte zu E-Bikes & Fahrrädern von PROPHETE.
Aaa Saugus Ma Appointment
Geometry Review Quiz 5 Answer Key
Walgreens Alma School And Dynamite
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Dmv In Anoka
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Pixel Combat Unblocked
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Rogold Extension
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Weekly Math Review Q4 3
Facebook Marketplace Marrero La
Nobodyhome.tv Reddit
Topos De Bolos Engraçados
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Holzer Athena Portal
Hampton In And Suites Near Me
Stoughton Commuter Rail Schedule
Bedbathandbeyond Flemington Nj
Free Carnival-themed Google Slides & PowerPoint templates
Otter Bustr
Selly Medaline
Latest Posts
Article information

Author: Nathanael Baumbach

Last Updated:

Views: 6604

Rating: 4.4 / 5 (75 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Nathanael Baumbach

Birthday: 1998-12-02

Address: Apt. 829 751 Glover View, West Orlando, IN 22436

Phone: +901025288581

Job: Internal IT Coordinator

Hobby: Gunsmithing, Motor sports, Flying, Skiing, Hooping, Lego building, Ice skating

Introduction: My name is Nathanael Baumbach, I am a fantastic, nice, victorious, brave, healthy, cute, glorious person who loves writing and wants to share my knowledge and understanding with you.