A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
Good morning! I hope you are doing well today.
Before resetting or re-syncing anything, check whether the files are still in SharePoint. When you delete files from a synced folder on your PC, OneDrive usually syncs that deletion to the library, so re-syncing will only bring back what's left.
Open the library in a browser. If the files are missing there too, go to the site's Recycle bin (left navigation, or Site contents > Recycle bin on a communication site). Select the files and choose Restore. They go back to their original folder. Items stay in the recycle bins for 93 days from deletion, and if you don't see them, check the Second-stage recycle bin link at the bottom (a site owner or admin may need to do this part).
If many files went missing at once, a site owner can use Settings > Restore this library to roll the whole library back to a point before the deletion, within the last 30 days.
Once the files show in the browser, follow the stop sync / unlink steps above, then select Sync from the library again.
If they're in neither recycle bin and it happened within the last 14 days, a SharePoint admin can ask Microsoft Support for a site restore.
Restore items from the recycle bin: https://support.microsoft.com/en-us/sharepoint/admin/restore-items-in-the-recycle-bin-that-were-deleted-from-sharepoint-or-teams
What happens when you delete a synced file: https://support.microsoft.com/en-us/sharepoint/sync/work-with-synced-files-in-file-explorer
Hope this is helpful! Cheers, Jennifer