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
What is Freight? - DHL Freight Connections
A Guide to Lithium-Ion Batteries for Drones
Lifewitceee
Myexperience Login Northwell
PontiacMadeDDG family: mother, father and siblings
[2024] How to watch Sound of Freedom on Hulu
Detroit Lions 50 50
Wordscape 5832
Wordle auf Deutsch - Wordle mit Deutschen Wörtern Spielen
Rhinotimes
Dc Gas Login
Tcgplayer Store
Dr. med. Uta Krieg-Oehme - Lesen Sie Erfahrungsberichte und vereinbaren Sie einen Termin
National Weather Service Denver Co Forecast
Roof Top Snipers Unblocked
Vrachtwagens in Nederland kopen - gebruikt en nieuw - TrucksNL
Apply for a credit card
Apple Original Films and Skydance Animation’s highly anticipated “Luck” to premiere globally on Apple TV+ on Friday, August 5
Riherds Ky Scoreboard
Yog-Sothoth
Ice Dodo Unblocked 76
Craigslist St. Cloud Minnesota
Vivaciousveteran
Idle Skilling Ascension
Weather October 15
Pokemon Inflamed Red Cheats
Everything You Need to Know About Ñ in Spanish | FluentU Spanish Blog
King Soopers Cashiers Check
Does Circle K Sell Elf Bars
Angela Muto Ronnie's Mom
Memberweb Bw
Newsday Brains Only
آدرس جدید بند موویز
Mixer grinder buying guide: Everything you need to know before choosing between a traditional and bullet mixer grinder
Check From Po Box 1111 Charlotte Nc 28201
Trivago Sf
Umd Men's Basketball Duluth
Bustednewspaper.com Rockbridge County Va
Uc Davis Tech Management Minor
Online-Reservierungen - Booqable Vermietungssoftware
Streameast Io Soccer
Doe mee met ons loyaliteitsprogramma | Victoria Club
Bridgeport Police Blotter Today
The Average Amount of Calories in a Poke Bowl | Grubby's Poke
Sinai Sdn 2023
Minute Clinic Mooresville Nc
What Does the Death Card Mean in Tarot?
10 Bedroom Airbnb Kissimmee Fl
Craigslist Cars And Trucks For Sale By Owner Indianapolis
Otter Bustr
Gelato 47 Allbud
Cheryl Mchenry Retirement
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.