Informational graphic titled "Restore Deleted SharePoint or OneDrive Files: 5 Quick Fixes" featuring the SharePoint and OneDrive logos, a recycle bin, and a laptop restoring Microsoft Office files.

Restore Deleted SharePoint or OneDrive Files: 5 Quick Fixes

Published by Codehyper | Managed IT, Cloud and Microsoft 365 support for Australian businesses

Deleted the wrong file, or saved over the right one? In most cases you can get it back yourself in a couple of minutes. The trick is knowing where to look first.

This guide shows how to restore deleted SharePoint or OneDrive files using the recycle bin, version history and point-in-time restore, plus what to do when the file has been gone too long.

Quick Answer

  • Deleted a file: open the Recycle bin, tick the file and select Restore.
  • Emptied the Recycle bin: check the second-stage recycle bin.
  • Saved over a file: use Version history. The file isn’t in the Recycle bin.
  • Lots of files deleted or damaged: use Restore your OneDrive.
  • Gone from everywhere: ask your IT provider. It may be in a backup.

Which Fix Do You Need?

What happened

Where to look

Typical time limit

Deleted a file or folder

Recycle bin

About 93 days from deletion, across both bin stages

Emptied the Recycle bin

Second-stage recycle bin

Same 93 days from the original deletion

Overwrote or edited a file by mistake

Version history

Depends on how many versions the library keeps

Many files deleted or encrypted (for example by ransomware)

Restore your OneDrive or Restore this library

Up to 30 days back

Deleted a whole SharePoint site

SharePoint admin centre, Deleted sites (admins only)

About 93 days

Past all of the above

Microsoft 365 backup

Depends on your backup

Microsoft can change these limits, so check current guidance if the file is close to the deadline. Act sooner rather than later.

Fix 1: Restore From the Recycle Bin

  1. Open OneDrive or the SharePoint site in a web browser.
  2. Select Recycle bin in the left-hand menu.
  3. Tick the file or folder.
  4. Select Restore. It returns to its original location.

If you can’t see it, try the search box in the recycle bin, or sort by Date deleted or Deleted by. Teams files live in SharePoint, so open the channel’s Files tab and choose Open in SharePoint to reach the right recycle bin.

Fix 2: Check the Second-Stage Recycle Bin

When the first-stage bin is emptied, or an item is deleted from it, it moves to the second stage rather than vanishing.

  1. On the Recycle bin page, scroll to the bottom.
  2. Select the link for the second-stage recycle bin.
  3. Tick the item and select Restore.

The second-stage bin is usually available only to site collection administrators or site owners. If you don’t see the link, ask your IT team or the site owner.

Fix 3: Restore a Previous Version of a File You Saved Over

If you replaced the content rather than deleting the file, don’t search the Recycle bin. The file still exists, and its older versions are stored with it.

  1. Right-click the file and select Version history.
  2. Find the version from before the mistake and open it to check it’s the right one.
  3. Select Restore.

You can also do this from inside Word, Excel or PowerPoint under File, Info, Version history. Restoring doesn’t erase the newer versions, so you can switch back if needed.

Fix 4: Restore a Whole Folder or Library to an Earlier Time

For widespread problems, such as an accidental mass delete or ransomware, roll everything back.

OneDrive

  1. Open OneDrive in a browser and select the Settings cog.
  2. Choose Restore your OneDrive.
  3. Pick a date from the list, or use the activity chart to find where the unwanted changes began.
  4. Select the activities to undo and choose Restore.

SharePoint library If you are a site owner, open the library’s settings and look for the option to restore the library to a previous point in time.

This can reverse changes from roughly the last 30 days. Microsoft describes the steps in Restore your OneDrive.

Fix 5: Ask Your IT Provider

If the file isn’t in either bin and version history doesn’t help, an administrator may still have options:

  • Restoring a deleted user’s OneDrive (kept for a limited period after the account is removed)
  • Restoring a deleted SharePoint site from the admin centre
  • Checking retention policies or holds that preserve a copy
  • Restoring from a third-party or Microsoft 365 backup

Our remote support team can take a look quickly, and our Microsoft 365 backup service covers files beyond the built-in retention window.

Why You Can’t Find the File

  • Wrong place. Check whether it was in OneDrive, a SharePoint library or a Teams channel.
  • Someone else deleted it. Check the site’s recycle bin, not just your own.
  • It was moved, not deleted. Search by name before restoring.
  • Deleted on your computer. In a synced folder, deleting locally deletes online too. Check the PC Recycle Bin or Mac Trash and the online recycle bin.
  • “Free up space” was used. That only removes the local copy. The file is still online.
  • It’s past the time limit. Then you need a backup.

How to Avoid Losing Files Again

  • Keep versioning switched on in libraries.
  • Limit who has delete permissions on important sites.
  • Back up Microsoft 365 data so you’re not relying only on the recycle bin. See our SharePoint and OneDrive services.
  • Check that sync is healthy before deleting anything locally.
  • Include file recovery in your disaster recovery plan.

Frequently Asked Questions

How long do deleted files stay in the SharePoint or OneDrive recycle bin?

Typically about 93 days from the original deletion, across the first and second stage bins combined.

Can I restore a file I overwrote?

Yes. Use Version history to open and restore an earlier version.

Where do I find the second-stage recycle bin?

At the bottom of the Recycle bin page, usually visible only to site owners or administrators.

Can I restore files deleted by someone else?

Often yes, through the site’s recycle bin, but you may need site owner or admin permissions.

What if the file is past 93 days?

Contact your IT provider. If you have a backup in place, it may still be recoverable.

Still Stuck?

Screens move around between app versions, so if what you see doesn’t match these steps, that is usually why. If you can’t get a file back, contact Codehyper or start a remote support session and an engineer will help. You can also explore our managed IT services or visit the Codehyper homepage.

Related Posts