Every now and then I get asked this question:
I deleted my file can I get it back?
[For traditional drives not a SSD with TRIM...] When you delete a file it doesn't actually delete it at all, it just removes the bit of information from the storage "Index" or "table" that records where the file is located and that it exists.
Theoretically if you use some special undelete software straight away and nothing else has happened on the storage device you can get your file back 99% of the time*.
HOWEVER: as soon as the bit of info in the storage "Index" or "table" is deleted, that also marks that space free and available to be overwritten with data again. Unfortunately that "nothing else has happened on the storage device" scenario seldom exists so there is only a chance that you will be able to reasonably recover the file. As soon as data is written over that spot on the storage it's a LOT more to get the original file back.
So if you want to recover a deleted file it needs to be done ASAP preferably before you start to write more data files to that storage drive.
There are a million undelete software programs out there some are outright virus\malware, some say they are free but aren't, some you have to pay for, and a very few are legit and free. I suggested testing any new and unknown software in an isolated environment before you start installing random internet software in your everyday PC.