Skip to content
All articlesSharePoint

SharePoint Recycle Bin: How to Recover Deleted Files (2026)

How to recover deleted files from the SharePoint recycle bin - both stages, restore steps, PowerShell, the 93-day limit, and how to get back files that are already gone.

22 July 20267 min read
SharePoint Recycle Bin: How to Recover Deleted Files (2026)

What Is the SharePoint Recycle Bin?

The SharePoint recycle bin is where files, folders, list items and even whole document libraries go when they are deleted from SharePoint Online or OneDrive - a safety net that lets you restore deleted content instead of losing it immediately. What trips most people up is that there are two stages, and once content ages out of both, it is gone for good.

  • First-stage (site) recycle bin - the one end users see. When someone deletes a file, it lands here and they can restore it themselves.
  • Second-stage (site collection) recycle bin - when an item is deleted from the first-stage bin, or the first-stage bin is emptied, it moves here. Only a site collection administrator can see and restore from the second stage.

This guide covers how to restore from both stages, how to do it in PowerShell, exactly how long you have, and - the part Microsoft's own tools have no answer for - how to get back a file that has already aged out.

Deleted SharePoint files flowing through the recycle bin and rescued into secure Azure cloud storage

How to Restore Deleted Files from the SharePoint Recycle Bin

For anything a user deleted themselves, the first-stage recycle bin is the fastest route:

  1. Open the SharePoint site (or OneDrive) the file was deleted from.
  2. In the left navigation, select Recycle bin.
  3. Find the deleted file or folder - you can sort by the date deleted or who deleted it.
  4. Select it and choose Restore. It returns to its original location, with its version history intact.

To restore several items at once, tick multiple entries (or the header checkbox to select all) and choose Restore - a straightforward way to bulk-restore deleted SharePoint files.

The Second-Stage (Site Collection) Recycle Bin

If the file is not in the first-stage bin - because it was deleted from there, or the bin was emptied - it may still be in the second-stage recycle bin, which only a site collection admin can reach:

  1. Go to Site Settings (gear icon) → under Site Collection Administration, select Recycle bin.
  2. In the recycle bin view, use the Second-stage recycle bin link at the bottom.
  3. Locate the item and choose Restore.

This is where "I emptied my recycle bin and now I need that file" is usually solved - as long as you are still inside the retention window below.

How Long Does the SharePoint Recycle Bin Keep Files?

93 days. In SharePoint Online, deleted items are retained for a total of 93 days from the moment they were first deleted - and that clock does not reset when an item moves from the first-stage to the second-stage bin. Both stages share the same 93-day window.

After 93 days (or if an admin manually empties the second-stage bin), the item is permanently deleted and cannot be recovered through the recycle bin at all. There is no "third stage," and Microsoft support cannot restore it for you once it has aged out.

Restore Deleted SharePoint Files with PowerShell

For bulk recovery or scripted restores, PnP PowerShell is the tool. List what is in the recycle bin, then restore:

# Connect to the site
Connect-PnPOnline -Url "https://yourtenant.sharepoint.com/sites/yoursite" -Interactive

# See what's in the recycle bin (both stages)
Get-PnPRecycleBinItem | Select-Object Title, ItemType, DeletedByName, DeletedDate

# Restore a specific item by its ID
Restore-PnPRecycleBinItem -Identity "<item-id>"

You can filter the Get-PnPRecycleBinItem output by DeletedDate or DeletedByName to find a specific file, and pipe it into Restore-PnPRecycleBinItem to bulk-restore. See SharePoint Online PowerShell for connection and module setup.

What Happens When a File Is Gone from the Recycle Bin?

This is the wall the recycle bin quietly creates. Once a file is past the 93-day window, or was purged from the second-stage bin, the native recycle bin has nothing left to restore. Your options shrink to:

  • A retention policy or label may have copied the content into the hidden Preservation Hold Library for compliance - but that is not user-recoverable through the recycle bin, and it silently inflates your SharePoint storage bill (see the Preservation Hold Library storage trap).
  • A third-party backup, if you happen to have one covering SharePoint.
  • Otherwise, the file is simply gone.

For a lot of organisations, "gone after 93 days" is a genuine risk - HR, legal or an audit asks for a document months later, long after the recycle bin has emptied.

Never Lose Deleted SharePoint Content: Recycle Bin Capture

Squirrel's Recycle Bin Capture closes that gap. Instead of leaving deleted and modified content to age out of the 93-day recycle bin, Squirrel captures it and archives it into your own Azure Blob Storage - preserved for as long as you choose, recoverable at any time, and without the storage bloat that retention policies create in the Preservation Hold Library.

The result is a deleted-content safety net that outlives the recycle bin: no 93-day cliff, no compliance gap when someone asks for a document a year later, and the archived content lives in storage you own and control. It is the difference between "we lost it after 93 days" and "we can get any deleted file back, whenever."

Frequently Asked Questions

How do I recover a deleted file in SharePoint? Open the site or OneDrive it was deleted from, select Recycle bin in the left navigation, find the file, and choose Restore - it returns to its original location with version history. If it is not there, a site collection admin can check the second-stage recycle bin.

What is the second-stage recycle bin in SharePoint? It is the site-collection-level recycle bin that holds items deleted from (or emptied out of) the first-stage user recycle bin. Only a site collection administrator can access it, via Site Settings → Recycle bin → Second-stage recycle bin. It shares the same 93-day retention window.

How long does SharePoint keep deleted files? 93 days from the original deletion, across both recycle bin stages combined. The clock does not reset when an item moves to the second stage. After 93 days the item is permanently deleted.

How do I recover a deleted SharePoint file that is not in the recycle bin? If it is past 93 days or the bin was emptied, the recycle bin cannot help. Content may survive in the Preservation Hold Library if a retention policy applied, but that is not user-restorable. To avoid this gap entirely, capture deleted content before it ages out with a tool like Recycle Bin Capture, which preserves it in your own Azure storage indefinitely.

Can I bulk-restore files from the SharePoint recycle bin? Yes - select multiple items (or the header checkbox) in the recycle bin and choose Restore, or use Get-PnPRecycleBinItem piped into Restore-PnPRecycleBinItem in PnP PowerShell for scripted bulk restores.

Stop Losing Deleted Files After 93 Days

The recycle bin is a 93-day safety net - Recycle Bin Capture makes it permanent, preserving deleted SharePoint content in your own Azure storage so a file is never truly gone.

Talk to us about Squirrel

About the author
Mark Smith - Co-Founder, SmiKar Software

Mark Smith co-founded SmiKar Software in 2015 and has spent the past decade helping organisations solve Microsoft 365 data management challenges. He works with the SmiKar team to build solutions for SharePoint archiving, storage optimisation, governance and compliance, supporting customers from growing businesses through to Fortune 500 enterprises.

More about SmiKar

Ready when you are

Cut your Microsoft 365 storage bill - keep your data in your tenant.