How to Bulk Restore Deleted SharePoint Files from Recycle Bin
Question details
The user needs a method to restore a large number of deleted files from the SharePoint recycle bin simultaneously, as manual restoration is inefficient.

- Product
- Microsoft SharePoint Online
- Device & OS
- not provided
- Scenario
- Recovering multiple deleted files efficiently from the SharePoint recycle bin.
- Observed behavior
- Manual recovery from the recycle bin is too time-consuming or impractical for bulk operations.
Ensure you have SharePoint Administrator or Global Administrator privileges and have the PnP PowerShell module installed on your system before running any scripts.
Use SharePoint PnP PowerShell for Bulk Recovery
Utilize a PowerShell script to automate the restoration of multiple files from the SharePoint recycle bin, saving time compared to manual recovery.
Using PnP PowerShell is the most efficient way to handle bulk restorations in SharePoint. However, always review and test scripts in a non-production environment first to prevent unintended data overwrites.
Open PowerShell as an Administrator and run the command `Install-Module -Name PnP.PowerShell` to install the required module.
Run `Connect-PnPOnline -Url https://yourtenant.sharepoint.com/sites/yoursite -Interactive` and sign in with your administrator credentials.
Run `Get-PnPRecycleBinItem | Restore-PnPRecycleBinItem -Force` to restore all items. You can also add specific filtering logic to this script to restore only certain files or files deleted within a specific date range.

Looking for a Lighter Document Management Solution?
While SharePoint requires complex PowerShell scripts for advanced file recovery, WPS Office offers a straightforward, cloud-integrated workspace. Enjoy simplified file management, automatic cloud backups, and easy version history without the heavy IT overhead.
- 1. Download WPS Office: Visit the official WPS Office website and download the free installer for your operating system.
- 2. Install and Launch: Run the installer, follow the on-screen instructions, and open the application.
- 3. Access WPS Cloud: Sign in to your WPS account to automatically sync, backup, and manage your documents securely.

Frequently Asked Questions
How long do deleted files stay in the SharePoint Recycle Bin?
Deleted files remain in the SharePoint Recycle Bin for 93 days from the time they were originally deleted before they are permanently purged.
Can I recover files deleted from the first-stage Recycle Bin?
Yes. When a file is deleted from the user's First-Stage Recycle Bin, it moves to the Second-Stage (Site Collection) Recycle Bin. A SharePoint administrator can still restore it from there within the original 93-day window.
Is there a built-in GUI method to restore multiple files at once?
SharePoint allows you to select multiple files in the Recycle Bin web interface and click 'Restore'. However, this GUI method only loads a limited number of items at a time and is highly inefficient for recovering thousands of files.




