Office 365 (OneDrive) - Restore your OneDrive

If lots of your OneDrive files get deleted, corrupted, or infected by malware, you may be able to restore your entire OneDrive to a previous time. Files Restore helps you undo all the actions that occurred on both files and folders within the last 30 days.

Check out the following article from Microsoft on how to use the File Restore feature.Restore your OneDrive