An accident happens so easily.
What if your files are deleted or overwritten? They may even become corrupt or in the worst case infected with malicious software. It starts to creep in the body and whizzes in the ears. The butterflies begin to flaunt in your stomach and the sweat rushes into your forehead. What in the world should you do now?

If you work on a local disk, a common file area on a traditional file server or on another platform, your panic condition may be justified, but if you work in Office 365 you can very likely take a deep breath, wipe the sweat away and relatively easily fix the problem.
If your files are located in OneDrive
You probably/hopefully already know that using the function “File Restore” in OneDrive, you can restore your OneDrive to the state it had in an earlier date (within 30 days back in time). This functionality has been available for quite some time now, but there are still many “regular” users who are not yet familiar with this.
If you are not already familiar with this functionality, you can read more about this in the article “Restore your OneDrive”
If your files are located in SharePoint or Microsoft Teams
A very good information, which was communicated a few days ago, is that now the functionality “Files restore for SharePoint and Microsoft Teams” will soon be launched. The functionality is very similar to the one you already have in OneDrive. I recommend that you read the article “Restore a document library” and familiarize yourself with the possibilities and limitations.
Are you keen to read more about news in SharePoint and you will find a lot of candy in Mark Kasman’s article “SharePoint Roadmap Pitstop: April 2019“.
With this good news, I wish you a continued good and productive working day knowing that your files are in safe hands and that the good platform you already use continuously, and with increasing speed, only gets better and better.