← Back to knowledge base
OneDrive

Restore deleted files in OneDrive or SharePoint

Get back a file or folder you deleted from OneDrive or a SharePoint library, or roll back to an earlier version of a file.

Last verified October 3, 2026

Files deleted from OneDrive or SharePoint go to a recycle bin first, and Office files keep their earlier versions. Most “lost” files can be recovered in a couple of minutes.

Symptoms

  • You deleted a file or folder by mistake.
  • A file was overwritten or edited and you need the older copy.
  • Files disappeared from a synced folder on your PC.

Cause

Deleting a synced file on your PC also deletes it from OneDrive, and the reverse. The deleted copy is kept in the OneDrive recycle bin for a limited time (93 days for work accounts).

Fix

1. Restore from the OneDrive recycle bin

  1. Go to onedrive.com and sign in with your work account.
  2. Select Recycle bin in the left pane.
  3. Select the files or folders, then Restore.

They return to their original location and sync back to your PC.

2. For a SharePoint or Teams library

Open the SharePoint site (in Teams, open the channel’s Files tab and select Open in SharePoint), then select Recycle bin in the left pane or in Site contents.

3. Check the second-stage recycle bin

If it isn’t there, scroll to the bottom of the recycle bin and select Second-stage recycle bin. Items emptied from the first bin wait there.

4. Restore an earlier version

  1. In OneDrive or SharePoint on the web, right-click the file and select Version history.
  2. Select … next to the version you want, then Restore.

If that didn’t work

  • Many files changed or deleted at once: OneDrive can roll the whole library back to a point in time. Select Settings (gear) › Restore your OneDrive. Choose a date before the problem started. Note that this undoes everything after that point.
  • Files are renamed with odd extensions or contain gibberish: that can be ransomware. Disconnect from the network and see Ransomware: what to do first.

When to call us

  • The file is older than the recycle bin keeps it, or was in someone else’s OneDrive.
  • A whole folder or library has been deleted or encrypted.
  • You need it restored from your organization’s separate Microsoft 365 backup, if you have one with us.

Sources

Didn’t fix it? We can take a look.

Open a ticket