SharePoint Online - Recover folders/files deleted throgh DeleteObject()

Tarak Dave 21 Reputation points
2021-09-09T09:27:15.29+00:00

I am following https://social.msdn.microsoft.com/Forums/en-US/b14bc36a-8307-4214-8913-38c742fba6e0/recover-files-deleted-through-csom-sp-online?forum=sharepointdevelopment

but that seems an old discussion, could be outdated now and SharePoint might have some advanced options. So
I still wanted to ask how I can recover the folder and files which are deleted through CSOM DeleteObject()?

Can I raise an MS support ticket to do it? Or any PowerShell scripts Or any other option? Actually, some folders got deleted from the production site, we have backups but wanted to take an easy and quick way to recover.
Kindly answer asap as it's urgent.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,737 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,686 questions
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 31,681 Reputation points Microsoft Vendor
    2021-09-10T01:54:25.597+00:00

    Hi @Tarak Dave ,
    As far as I know, there is no such way to recover the folders/files deleted by DeleteObject().DeleteObject() calls a hard delete within the API and by-passes the Recycle Bin.You may get your files by using a recovery program.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    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.