How do I recover a deleted file in SharePoint?
Open the site, click Recycle bin in the left navigation (or Settings, Site contents, Recycle bin), select the file and click Restore. Deleted files stay recoverable for 93 days. If it is not listed, a site collection administrator can check the second-stage recycle bin, linked at the bottom of that page.
Files disappear from SharePoint for a long list of reasons: a user emptying a folder, a sync conflict, a script gone wrong, or a Microsoft 365 retention policy doing its job. SharePoint Online keeps deleted items for 93 days across two recycle bins, and a whole library can be rolled back to any point in the last 30 days. The four places below are in order from quickest to most thorough.
Step 1: The first-stage Recycling Bin
The first-stage bin is the per-site bin. Anyone with edit permission on the site can restore from it, including items someone else deleted. Items stay here until someone deletes them from the bin or the 93-day retention period, which starts at the original deletion, runs out.
- Open the site that contained the file.
- Click Recycle bin in the left navigation. If it is not there, open Settings (the gear), choose Site contents, and click Recycle bin at the top right.
- Find the file in the list and click Restore. Multi-select and bulk-restore from the same view.
Step 2: The second-stage Recycling Bin
When a user empties the first-stage bin, items move to the second-stage bin, visible only to site collection administrators. Total retention is still 93 days from original deletion. The second stage doesn't extend the clock; it just gives admins a recovery window for content users have already "permanently" deleted.
- Open the first-stage Recycle bin.
- Scroll to the bottom and click Second-stage recycle bin.
- Find and restore the item the same way.
Each stage has its own search box and each one matches on item name only, so searching the first stage does not search the second. If you are not certain what the file was called, how to search the SharePoint recycle bin covers what that box matches and how to narrow by deletion date when there is no date filter.
Step 3: Roll the whole library back
When the damage is a lot of files in one document library, such as a synced folder that deleted everything or a bad bulk move, restoring item by item is the slow way. A site admin can wind the library itself back instead:
- Open the document library.
- Open Settings and choose Restore this library.
- Pick a preset such as Yesterday, or a custom date and time, then use the activity list to choose the earliest change to undo.
- Confirm. Everything done to files and folders after that point is undone.
It reaches back 30 days, works only on modern libraries, and relies on the recycle bin and version history, so anything already purged from the second-stage bin stays gone. It cannot bring back a library that was itself deleted; that is in the Recycle bin like any other item. If the menu item is missing, you are not a site admin or the library is in classic view. A restore can itself be reversed by running Restore this library again.
If you need to know who deleted the files before you decide what to put back, how to find who deleted SharePoint files covers the bin's Deleted By column and the audit log.
Step 4: Search at scale with Recycle Master
Both built-in bins share the same limitation: the search box matches on item name and nothing else. Every other column is sortable but not filterable. If the name is fuzzy or the deletion date is what you actually know, the native bins leave you scrolling.
ShareMaster's Recycle Master loads the whole bin and turns those columns into real filters:
- Search by text or title, with partial matches included.
- Filter by original location (list, document library, or folder path).
- Filter by author or who deleted it when the user is known.
- Filter by kind (file, folder, list item) and a deleted-after and deleted-before date.
Once results are filtered, restore one item or everything the filter matched, and choose beforehand what happens if something with the same name is already back in place. It works on one site or one OneDrive at a time, which is the scope of the recycle bin itself, so if you do not know which site held the file you still work through the candidates.
It runs in your browser from the sharemaster.io members area, with nothing to install and a Mac is fine, or in the Windows app. The same licence covers both: the Recycle Master, Archive Master and Clone Master plans include it, and the free trial can search and browse every item but needs a paid plan to restore.
Step 5: If the 93-day window has passed
Once an item is older than 93 days, the native bins purge it. Three options remain, in roughly descending order of viability:
- Microsoft 365 Backup. If your tenant subscribes to Microsoft's first-party backup add-on, restore points may be available beyond 93 days. Check with your global admin.
- A Microsoft support restore. SharePoint keeps its own backups for 14 days beyond deletion, so for a short time after the purge an administrator can ask Microsoft support to restore content. That restore covers a whole site collection, not one file, so it suits mass deletions rather than a single missing document.
- Third-party backup. Vendors such as Veeam, Rubrik or AvePoint take their own snapshots independent of Microsoft's retention. If you have one, it's usually the best option for old single-file recovery.
Step 6: Prevent future loss
Deletion happens; visibility is what changes the outcome. A few measures reduce the next emergency:
- Turn on versioning on every document library that holds real work. Versioning means a single user edit can't destroy the previous content; they can only add a new version.
- Use ShareMaster's Space Master to trim old versions sensibly rather than disabling versioning to save space.
- Audit who has unique permissions on sensitive libraries with the Security Matrix report in Report Master. Fewer editors means fewer accidental deletes.
Summary
Most "missing file" tickets resolve at Step 1 or Step 2, and a mass deletion in one library is usually fastest undone with Restore this library. When the file is in the bin but hard to find, Recycle Master filters it by location, author, who deleted it, kind and date range, which the native bins can't do. And when the 93-day clock has run out, your backup posture matters more than your bin-search tooling.
If the file is still missing, the usual reason is that you are looking in the wrong stage or the wrong site collection. How to search the SharePoint recycle bin covers what the search box actually matches and how to narrow by deletion date. Recovering many files at once is in the bulk restore guide.
One thing worth knowing before you trial anything for this: a trial licence cannot restore from the recycle bin at all. That is a deliberate anti-abuse limit, not a fault, but it means a trial run tests the workflow rather than the outcome. PowerShell or buy covers the rest of the decision.
Last updated