← Al Davies, 250 High Street

How to restore a deleted SharePoint document library

Open the site recycle bin first, then the second-stage (site collection) recycle bin, and restore the library from whichever holds it. Microsoft says deleted items stay 93 days, and restoring a library brings its files back with it.

What does the problem look like?

A Q&A poster in 2024 wrote: "The files are not available in the recycling bin." Most files in a site had been deleted after a OneDrive sync, the folders stayed, and the poster could not find a restore option in the settings.

What are the two recycle bins?

Microsoft says the 93 days start when the item is deleted from its original location and cover both stages. Subsites go straight to the second stage but still count toward storage until purged.

Site recycle bin (first stage)Site collection recycle bin (second stage)
How items get thereDeleted items land here firstItems deleted from the first stage move here
Who can restorePeople with edit permission on the itemsSite collection administrators or owners
StorageCounts toward storageDoes not count toward storage. Its space is 200% of the site collection quota, which cannot be changed

How do you restore from the site recycle bin?

Items go back to the place they were deleted from. If a file or folder already exists at the old path, the restored item gets a number added to its name.

  1. Go to the site the library was deleted from. In Teams, open the channel's Files tab, select More, then Open in SharePoint.
  2. In the Quick Launch bar, select Recycle bin. If you do not see it, select Settings, then Site contents, and look at the top right.
  3. Tick the box next to the library.
  4. Select Restore.

How do you restore from the second-stage bin?

  1. Open the Recycle bin page as above. On a communication site, select Site contents, then Recycle bin in the top bar.
  2. If the link is missing, select Settings, then Site settings, then Recycle bin under Site Collection Administration.
  3. Scroll down on the Recycle bin page and select second-stage recycle bin.
  4. Point to the item, select the check icon, then select Restore.

What are the limits?

Items leave the second-stage bin early if the bin goes over its quota (oldest first), or if an admin deletes them there. Microsoft says backups are kept 14 days beyond deletion, and an admin can ask Microsoft Support for a restore in that window, but only for whole site collections, and the restore goes to a new URL.

What happens to files, folders and versions?

Stop it happening again

Fewer people with delete rights means fewer losses. See our guide on SharePoint permissions best practices. To bring back a single list item, read how to restore a deleted SharePoint list item.

Al Davies builds tools that cut busywork and missed steps for teams. If deletes keep surprising your team, a first call can look at an approval step before anything is removed. The first call is free and takes 45 minutes.

FAQ

How long does SharePoint keep a deleted library?

Microsoft says 93 days from the day it was deleted from its original place, unless it is removed from the second-stage bin sooner.

Can I restore a file if its library is gone?

Not directly. Microsoft says to restore the library first, and the files come back with it.

Who can use the second-stage recycle bin?

Site collection administrators or owners in SharePoint Online.

Does the second-stage bin use my storage?

Microsoft says the first stage counts toward storage and the second stage does not.

Can a deleted whole site be restored from the bin?

The bin pages cover items. Microsoft says restoring a site collection is for global or SharePoint admins.

Sources