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
TRX to ETH Exchange | Convert TRON to Ethereum on SimpleSwap
Most Aggressive Credit Repair Companies
Encore Atlanta Cheer Competition
Is Sam's Club Plus worth it? What to know about the premium warehouse membership before you sign up
Wausau Marketplace
Is Csl Plasma Open On 4Th Of July
Craigslist Cars And Trucks Buffalo Ny
Acbl Homeport
Lesson 3 Homework Practice Measures Of Variation Answer Key
Hello Alice Business Credit Card Limit Hard Pull
Epaper Pudari
Richmond Va Craigslist Com
1Win - инновационное онлайн-казино и букмекерская контора
Mini Handy 2024: Die besten Mini Smartphones | Purdroid.de
Top tips for getting around Buenos Aires
Aberration Surface Entrances
Best Uf Sororities
10-Day Weather Forecast for Santa Cruz, CA - The Weather Channel | weather.com
Is Grande Internet Down In My Area
Nurse Logic 2.0 Testing And Remediation Advanced Test
Curver wasmanden kopen? | Lage prijs
Robeson County Mugshots 2022
Popular Chinese Restaurant in Rome Closing After 37 Years
Veracross Login Bishop Lynch
Espn Horse Racing Results
Pasco Telestaff
Naval Academy Baseball Roster
Teekay Vop
Pioneer Library Overdrive
Great ATV Riding Tips for Beginners
Pulitzer And Tony Winning Play About A Mathematical Genius Crossword
Craftybase Coupon
Till The End Of The Moon Ep 13 Eng Sub
Eegees Gift Card Balance
ATM, 3813 N Woodlawn Blvd, Wichita, KS 67220, US - MapQuest
Kacey King Ranch
2487872771
South Florida residents must earn more than $100,000 to avoid being 'rent burdened'
Mrstryst
Kaiju Paradise Crafting Recipes
Myhrconnect Kp
W B Crumel Funeral Home Obituaries
Metro 72 Hour Extension 2022
Devin Mansen Obituary
Home Auctions - Real Estate Auctions
Subdomain Finder
Vagicaine Walgreens
25 Hotels TRULY CLOSEST to Woollett Aquatics Center, Irvine, CA
A jovem que batizou lei após ser sequestrada por 'amigo virtual'
1990 cold case: Who killed Cheryl Henry and Andy Atkinson on Lovers Lane in west Houston?
10 Best Tips To Implement Successful App Store Optimization in 2024
Billings City Landfill Hours
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.