Today One of my customers got upgraded from Windows 7 to Windows 10. Just after the upgrade when my user opens her SharePoint. It's Showing empty, amazing right?
Let me explain you first, why and how it happened to the user to there SharePoint or personal OneDrive. User synced her Onedrive from her laptop to Cloud. So when she upgraded from Windows 7 to Windows 10, all her files got deleted. Cloud Sharepoint thought that user intentionally deleted all her files. That's why SharePoint puts her all files to recycle bin.
First Images shows how Sharepoint files look on the cloud
OneDrive in Cloud
and 2nd image is the synced image of same Sharepoint cloud on the desktop.
Synced OneDrive in Desktop
Now when a user upgrades from Windows 7 to Windows 10. During the time of formatting, if you forgot to disconnect your synced account then everything will be deleted because your desktop was synced with cloud then your all online cloud files also get deleted.
A Quick Tip:- Disconnect your synced account before you upgrade to cloud.
Now Resolution - When All files are deleted from your SharePoint cloud.
Login into Sharepoint Online and click on the Sharepoint Site who's data got deleted or your OneDrive then clicks Recycle Bin.
Click Recycle Bin in OneDrive Image
After clicking Recycle Bin you will see all your deleted files. Now you just need to select all those files or folders you need to restore then click Restore.
Click Restore After Selecting All Files
Now if your files got restored from there then all good.
Sometimes it happens that you click on Restore button and it's not restoring, Nothing is happening, you tired in all browsers like chrome, firefox, IE and Edge but no luck then it's because of caching.
To Resolve this issue just click on the Left side bottom of OneDrive Cloud - Return to Classic OneDrive.
Click on Classic View of OneDrive
So that's the catch, you can easily restore your files from classic OneDrive because caching don't work there.
Now try to Restore from Classic View
And it will definitely restore you all deleted files.