logo
search
Deleted File Recovery

How to Bulk Restore Deleted SharePoint Files from Recycle Bin

Olivia MillerOlivia Miller Oct 9, 2026 869 views

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.

How to Bulk Restore Deleted SharePoint Files from the Recycle Bin
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.
Before you start

Ensure you have SharePoint Administrator or Global Administrator privileges and have the PnP PowerShell module installed on your system before running any scripts.

Solution 1Recommended

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.

1
Install PnP PowerShell

Open PowerShell as an Administrator and run the command `Install-Module -Name PnP.PowerShell` to install the required module.

2
Connect to your SharePoint Site

Run `Connect-PnPOnline -Url https://yourtenant.sharepoint.com/sites/yoursite -Interactive` and sign in with your administrator credentials.

3
Execute the Restore Command

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.

Use SharePoint PnP PowerShell for Bulk Recovery
Test Before Execution: Always test your PowerShell scripts on a small batch of test files or a non-production site before running a large-scale recovery operation.
Free Microsoft Office alternative

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. 1. Download WPS Office: Visit the official WPS Office website and download the free installer for your operating system.
  2. 2. Install and Launch: Run the installer, follow the on-screen instructions, and open the application.
  3. 3. Access WPS Cloud: Sign in to your WPS account to automatically sync, backup, and manage your documents securely.
Free, lightweight, and incredibly easy to deploy for teamsFully compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx)Built-in WPS Cloud storage with intuitive file versioning and recoveryUser-friendly interface requiring no advanced scripting knowledge
microsoft office alternative - wps office

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.