Summary
This article provides information on how to restore a SharePoint/Microsoft Teams document library that was deleted, overwritten, corrupted, or infected by malware by reversing all actions that occurred on both the files and the folders in the last 30 days.
How-To
Task: To restore a SharePoint/Microsoft Teams document library that was deleted, overwritten, corrupted, or infected by malware by reversing all actions that occurred on both the files and the folders in the last 30 days.
Limitations
- Only site owners can start a restore. During the restore, a restore in progress notice displays.
- Restoring files uses version history and the recycle bin. If version history is turned off, you can’t restore files to a previous version.
- Deleted files can’t be restored after they’ve been removed from the site collection recycle bin.
- If you upload a file or folder again after deleting it, the restore operation for that file or folder is skipped.
- If some files or folders can’t be restored, a log file is generated to capture the errors.
- Restore this library is only available for the modern experience in SharePoint and can't be used to restore an entire library that's been deleted.
Note: Removing or renaming your General channel cannot be restored using this procedure or any other procedure. Never remove or rename your General channel.
Instructions
Easy step-by-step instructions and a video on Restoring a shared library.
Outcome
The library is restored to the state it was in before the first activity you selected. If you change your mind about the restore you just did, you can select Restore this library to undo the restore by selecting the restore action you just did.
Further Reading
Restore individually deleted files, one at a time, from the Recycle Bin
How to recover missing, deleted or corrupted items in SharePoint and OneDrive for work or school
Need additional help?
For assistance concerning site creation, content sharing, file synchronization, or other common SharePoint, OneDrive, Teams, or Office app activities, we recommend our Microsoft 365 Learning sites:
Learn more about the great tools our Microsoft 365 Learning sites offer!
Visit the Technology Help Desk Support page to locate your local campus contact information or to submit an online technology support request. For password issues you must call or visit the Help Desk in person.