We all delete things whether on purpose or accident. After deleting a file, there could be a situation where you need to restore said file. Built-in to SharePoint are recycle bins where every deleted files lives for 93 days, as stated here.
Resources
Restore Deleted Items from a Recycle Bin
You can restore items that you delete and items other people delete (as long as you have edit permissions).
4. Click Restore.
Note: If you don’t see the item you’re looking for, and it was deleted recently, a site collection administrator might be able to restore it from the site collection recycle bin. If you're the site collection administrator, see Restore deleted items from the site collection recycle bin.
When an item is restored, it is restored to the same location that it was deleted from.