Share via

Restore thousands of files in Sharepoint Online for specific user

Info Tech 0 Reputation points
2026-02-05T19:00:23.56+00:00

A user has deleted thousands of files. Is there an easier way to get it back, rather than selecting a 100 at a time?

Microsoft 365 and Office | SharePoint | For business | Windows
{count} votes

2 answers

Sort by: Most helpful
  1. Ruby-N 8,785 Reputation points Microsoft External Staff Moderator
    2026-02-05T22:12:20.9866667+00:00

    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. 

    0 comments No comments

  2. Q&A Assist
    2026-02-05T19:00:33.4733333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To restore thousands of files in SharePoint Online for a specific user, you can utilize the Files Restore feature, which allows you to go back in time on any Document Library in SharePoint to recover files from the last 30 days. This feature can help you restore all files at once rather than selecting them individually. Here’s how you can do it:

    1. Go to the document library where the files were deleted.
    2. Click on the settings gear icon and select Restore this library.
    3. Choose a restore point from the last 30 days to restore the library to that specific state.
    4. Confirm the restoration.

    This method will restore all files deleted within that timeframe, making it much easier than selecting files one by one.


    References:

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.