Recover Deleted Files from OneDrive or SharePoint
A Middle Eastern man in his forties working on a laptop at a shared table in a small accounting office, soft daylight

Recover Deleted Files from OneDrive or SharePoint

Deleted OneDrive and SharePoint files go to a recycle bin on the web, where Microsoft 365 keeps work or school files for 93 days. Open OneDrive or the SharePoint site in your browser, select Recycle bin, check the files and select Restore. If they aren’t listed, check the second-stage recycle bin at the bottom of that page.

Try these quick fixes first

  1. Open OneDrive in your browser and select Recycle bin in the left pane.
  2. For a SharePoint or Teams file, open the site and select Recycle bin.
  3. Scroll to the bottom of the recycle bin and select Second-stage recycle bin.
  4. If the file synced to your computer, check the Recycle Bin on your desktop.
  5. Search OneDrive for the file name. It may have been moved, not deleted.
  6. If the file was changed rather than deleted, open its Version history.

Restore files from the OneDrive recycle bin

Microsoft sends deleted OneDrive files to an online recycle bin first, so this is how to recover deleted files from OneDrive.

  1. In your browser, go to onedrive.com and sign in with your work or school account.
  2. Select Recycle bin in the navigation pane on the left.
  3. Point to each file you want and select the circle check box next to it.
  4. Select Restore. The files go back to the folder they were deleted from.

Where is the SharePoint recycle bin?

Every SharePoint site has its own recycle bin, and files in a Teams channel use the one on the team’s SharePoint site.

  1. Go to the SharePoint site the file was deleted from.
  2. On a team site, select Recycle bin in the left pane.
  3. On a communication site, or if you don’t see it, select Settings (the gear) > Site contents, then select Recycle bin at the top of the page.
  4. For a Teams file, open the channel and select the Shared tab (Files in some versions of Teams). Select More options > Open in SharePoint, then open the recycle bin.
  5. Check the box next to each file and select Restore.

Check the second-stage recycle bin

When someone deletes a file from the recycle bin or empties it, the file moves to the second-stage (site collection) recycle bin for the rest of its 93 days.

  1. Open the OneDrive or SharePoint recycle bin as described above.
  2. Scroll to the bottom of the page and select Second-stage recycle bin.
  3. Select the files you want and select Restore.
  4. In your own OneDrive, you can do this yourself. On a SharePoint or Teams site, it needs owner or administrator permissions, so ask the site owner or IT.
Recycle binWho can open itHow long files stay
First stage (the site or OneDrive recycle bin)The OneDrive’s owner, or anyone who can edit the siteUp to 93 days, unless someone empties it
Second stage (the site collection recycle bin)The OneDrive’s owner, site owners and administratorsThe rest of the 93 days

Check your computer’s Recycle Bin for synced files

If you deleted the file from a synced OneDrive or SharePoint folder on your computer, you can usually restore it from the Windows Recycle Bin too.

  1. Double-click Recycle Bin on the desktop.
  2. Select the files you want, right-click them and select Restore. They go back to their original folder.
  3. Files deleted on the web or on another device, and files that were online-only, don’t appear in your computer’s Recycle Bin. Use the online recycle bin for those.
  4. On a Mac, open the Trash, right-click the files and select Put Back.

For files that were never in OneDrive, see our guide to recovering deleted files in Windows 11.

Restore a file someone else deleted

Who can bring a file back depends on where it was stored and who owns it.

  1. On a SharePoint or Teams site, anyone with edit permission can see and restore files other people deleted. Open the site’s recycle bin and look for the file.
  2. If it isn’t there, ask the site owner or IT to check the second-stage recycle bin.
  3. If a coworker shared the file from their own OneDrive and then deleted it, you can’t restore it. Ask them to restore it from their OneDrive recycle bin.
  4. If the owner has left the company, tell IT right away. By default, Microsoft keeps a deleted user’s OneDrive for 30 days and gives their manager access.

Undo changes to many files with Restore your OneDrive

Restore your OneDrive rolls your whole OneDrive back to a point in the last 30 days, which undoes a mass deletion, overwrite, corruption or malware damage in one step.

  1. Read this first: it undoes every change after the point you pick, not just the deletion, so save and close any open files. Running it again can reverse it.
  2. Open OneDrive in your browser and select Settings (the gear) > Restore OneDrive. If it’s missing, your organization may not offer it, so ask IT.
  3. Pick a date from the list, such as Yesterday, or select Custom date and time.
  4. Use the activity chart and feed to find the first change to undo. With a custom date, select it, and later changes are selected too.
  5. Select Restore. Files created after that point go to your OneDrive recycle bin, so you can still get them back.
  6. For a SharePoint library, a site admin can use Settings > Restore this library instead.

Restore an earlier version of a changed file

If a file was overwritten or edited rather than deleted, version history keeps earlier copies of files stored in OneDrive or SharePoint.

  1. In OneDrive on the web, right-click the file and select Version history.
  2. Select the three dots next to the version you want, then Restore.
  3. In a SharePoint library, select the three dots next to the file, then Version history (or More > Version history). Open the menu next to a version’s date and select Restore, then OK.
  4. In Word, Excel or PowerPoint, select the file name at the top of the window, then Version history. Open the version you want and select Restore.
  5. The old version becomes the current one, and the version it replaced stays in the history.

How many versions you see depends on your organization’s library settings. For spreadsheets, see how to restore a previous version of an Excel file.

What can IT recover after the recycle bins are emptied?

You can’t restore a file yourself once it leaves the second-stage recycle bin, but an administrator may still have options for a limited time.

  1. Give IT the file names, where they were stored, and roughly when and on which device you last opened them.
  2. For 14 days after content is permanently deleted, an administrator can ask Microsoft Support to restore it from Microsoft’s backups. Those restores cover a whole site, not single files.
  3. If your company uses Microsoft Purview retention policies, a copy may be kept in a hidden Preservation Hold library that IT can search with eDiscovery.
  4. If your company pays for Microsoft 365 Backup or another backup of Microsoft 365, IT can restore from it.
  5. A SharePoint administrator can restore a deleted site for 93 days. For a team’s site, ask within 30 days so the rest of the team comes back too.

Why does this happen?

  • Someone deleted, moved or renamed the file on the web, in Teams or in a synced folder on a computer. Deleting a shared file deletes it for everyone.
  • The person who shared the file deleted it from their own OneDrive, or their account was removed after they left.
  • Someone emptied a recycle bin, the second-stage bin ran out of space, or the 93 days ran out.
  • A sync problem, a bad edit or malware changed many files at once.

When should you call IT?

  • The file isn’t in the first-stage or second-stage recycle bin.
  • Many files vanished or changed at once, files have strange new extensions, or you see a ransom note. Stop working and call right away.
  • You need the second-stage recycle bin on a SharePoint or Teams site and you aren’t a site owner.
  • The files belonged to someone who left the company, or a whole site, library or team was deleted.
  • Restore OneDrive or Restore this library is missing or didn’t bring the files back.

The recycle bins have time limits, so if your company keeps no separate copy of its Microsoft 365 files, read about our cloud backup service.

OAC Technology’s IT support team fixes problems like this for businesses across the Twin Cities. Clients can call 952-548-5558, Monday to Friday, 8 a.m. to 6 p.m. Central. Not a client yet? Call the same number or send us a message.

Common questions

Where is the recycle bin in SharePoint?

On a team site, it’s in the left pane. On communication sites, select Settings > Site contents, then Recycle bin at the top of the page. For a Teams channel, open the Shared tab and select Open in SharePoint first.

Why isn’t the SharePoint recycle bin showing up?

Communication sites don’t list it in the left pane, so open it from Settings > Site contents instead. If someone emptied it, the files are in the second-stage recycle bin, which needs owner or administrator permissions.

How do I access the SharePoint second-stage recycle bin?

Open the site’s recycle bin, scroll to the bottom and select Second-stage recycle bin. On a SharePoint site you need owner or administrator permissions, but in your own OneDrive you can open it yourself.

How long do deleted files stay in OneDrive and SharePoint?

For work or school accounts, 93 days from when the file was first deleted, across both recycle bins. Files can go sooner if someone empties the second-stage bin or it runs out of space, and your administrator can change the OneDrive period.

Related guides

Author picture

OAC Technology

Author

Related Articles