Investigate SharePoint Files Deleted Through OneDrive Sync
Question details
Identify why SharePoint files are being deleted when synchronized through OneDrive and restore the affected files.

- Product
- Microsoft OneDrive and SharePoint Online
- Device & OS
- Windows; version not provided
- Scenario
- Multiple users sync SharePoint document libraries or OneDrive files to File Explorer using the OneDrive sync client.
- Observed behavior
- Files are intermittently moved to the Recycle Bin across multiple users and libraries, apparently when the OneDrive sync client is active.
Identify an affected file, its library, and the approximate time it was deleted. Ask a Microsoft 365 administrator with audit search permissions to check that auditing is enabled.
Trace the deletion source and pause OneDrive sync
Use the Microsoft 365 audit log to investigate the deletion, then restore affected files while synchronization is paused.
On affected computers, select the OneDrive cloud icon in the Windows notification area, open Help & Settings, and choose Pause syncing. Coordinate with affected users before restoring files.
Open the Microsoft Purview portal and go to Audit. Set a date range covering the deletion, filter Activities for Deleted file if available, and run the search.
Open the relevant search result and inspect the user, IP address, user agent, file path, and timestamp. A user agent containing Microsoft SkyDriveSync and a client version may indicate a OneDrive sync client; compare it with the affected computers.
On each affected computer, open the OneDrive cloud icon, select Help & Settings > Settings, and check About for the OneDrive version. Press Windows+R, enter winver, and select OK to check the Windows version.
Open the affected SharePoint site or OneDrive on the web, select Recycle bin, choose the deleted files, and select Restore. Keep sync paused until the deletion source has been investigated.

Edit Restored Office Files with WPS Office
WPS Office is a free, lightweight alternative for working with restored documents, spreadsheets, and presentations. Its familiar interface and Microsoft Office format support make it easy to move existing files into your workflow. It does not fix OneDrive or SharePoint sync issues.

Frequently Asked Questions
Where can I see who deleted a SharePoint file?
In the Microsoft Purview portal, open Audit, search the relevant date range for Deleted file activity, and open the matching result to review the user and event details. Audit search requires appropriate permissions.
How can I tell whether OneDrive sync was involved?
Check the audit event's user agent and client details. A Microsoft SkyDriveSync user agent with a OneDrive client version may indicate a sync client, but investigate the device and other event details before drawing a conclusion.
Where do I restore deleted SharePoint files?
Open the affected SharePoint site, select Recycle bin, select the files, and choose Restore. For files deleted from a user's OneDrive, check that OneDrive's Recycle bin on the web.
Will pausing OneDrive sync stop every deletion?
No. Help & Settings > Pause syncing pauses the client on that computer only. Files may still be deleted from another device, a browser, or another process.




