A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
Dear @Danie Cronje,
Thank you for posting your question in the Microsoft Q&A forum.
I understand how inconvenient it can be when a user accidentally deletes thousands of files and restoring them in batches of only 100 at a time can be very time‑consuming.
SharePoint Online includes built‑in recovery features that make it possible to restore content at scale without manually selecting hundreds of items. Large deletions often occur when a synced folder is removed from File Explorer or when a parent folder is deleted in a document library, which triggers a delete for everything inside it. In most cases, these items can still be recovered as long as they remain within the retention period.
Here are some workarounds you can consider:
Note: If you are an end user, please contact your organization’s IT administrator. These steps can only be performed by an IT admin.
Option 1: Restore the entire document library to a previous point in time
This is the fastest approach if the deletion happened within the past 30 days.
Note: This method relies on version history and recycle bin data and cannot restore items that have already been permanently removed from both recycle bins.
Open the document library where the deletion occurred.
Select the Settings gear icon.
Choose Restore this library.
Select a preset time such as “Yesterday” or choose a custom date and time just before the deletion.
Review the activity list.
Confirm the restore.
Option 2: Restore items in bulk using PnP PowerShell (Advanced option)
If you need to restore only the items deleted by a specific user or within a certain time range, PowerShell provides a more targeted and scalable option.
- Install and connect PnP PowerShell to the SharePoint admin center.
- Retrieve items from the first‑stage and second‑stage recycle bins.
- Filter the deleted items by criteria such as user email or deletion date.
- Use bulk restore commands, such as RestoreByIds, to restore all selected items at once.
This method is ideal for very large sets of deleted files. If needed, your administrator can also open a support request for assistance with scripting tailored to your SharePoint site environment.
Restore multiple deleted items from the SharePoint Online Recycle Bin based on deletion date and us…
Please note that this information is being provided by the moderator solely for your convenience. The referenced sites are not managed or overseen by the moderator, and therefore we cannot guarantee the accuracy, security, or suitability of any software or content available there. We recommend reviewing all information carefully and ensuring you understand any associated risks before following suggestions from the provided link.
Option 3: When items are no longer available in the recycle bins
If the deletion occurred more than 30 days ago or the content is no longer present in either recycle bin, your IT admin can submit a support request through the Microsoft 365 Admin Center > Support > Help & Support.
Support may assist with site‑level recovery options such as point‑in‑time restoration. If your organization uses Microsoft 365 Backup, that service may also provide additional recovery alternatives.
Additional information is available in the following resources: Restore items in the recycle bin that were deleted from SharePoint or Teams - Microsoft Support
Restore a shared library - Microsoft Support
Restore deleted items from the site collection recycle bin - Microsoft Support
How to recover missing, deleted or corrupted items in SharePoint and OneDrive for work or school - …
As community moderators, we kindly ask for your understanding that our access to internal development details is limited. Our primary role is to guide users toward the appropriate resources and support channels. While we may not have visibility into performing deeper backend analysis, we’ll continue doing our best to support you within the scope of our responsibilities.
I hope this information is helpful. If you have any questions or need further support, please don’t hesitate to reach out at any time.
Thank you for your patience and understanding.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have any extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.