Where deleted files go on a Mac, and how long you have to get them back
When you delete a file on a Mac, it moves to the Trash folder — but it stays there until you empty the Trash. As long as the file is still in Trash, you can recover it by opening Trash (in the Dock or in Finder), finding the file, and dragging it back to where you want it. This works whether you deleted the file by accident or replaced it with a newer version.
Once you empty the Trash, the file is no longer visible to you, but the data still exists on your hard drive until your Mac writes something else over that space. How long that takes depends on how much you use your Mac. On a lightly used machine, you might have weeks or months. On a machine you use every day, it could be days. The sooner you act, the better your chances.
If your Mac uses an SSD (solid state drive) rather than a traditional hard drive, recovery becomes harder after deletion because SSDs automatically erase unused space to maintain performance. This process, called TRIM, can happen within hours or days. If you think you need to recover a file from an SSD, do not use your Mac for anything else until you attempt recovery.
Key Takeaways
- Check your Trash folder first — if the file is still there, drag it back to recover it when ready.
- If you emptied the Trash, recovery software like DiskWarrior or Data Rescue can scan your drive for deleted files, but success depends on whether your Mac has written over that space yet.
- Time Capsule backups and iCloud backups let you restore a file to an earlier version without recovery software, and this is faster and more reliable than scanning the drive.
- On SSDs, stop using your Mac as soon as you realize a file is missing, because the drive erases unused space automatically and makes recovery much harder.
- Replaced files (a new version saved over an old one) can sometimes be recovered through version history in iCloud or by using recovery software to find the old version on disk.
Checking Trash and using version history before you try recovery software
Open Finder and look in the Dock for the Trash icon (it looks like a trash can). Click it. If your deleted file is there, right-click it and select "Put Back" — Finder will return it to the folder it came from. If you do not remember where it was, you can drag it to any folder you choose instead.
If the file is not in Trash, check whether you have a backup. Open System Settings, click "General," then "Time Machine" and see whether backups are turned on. If they are, you can use Time Machine to browse your drive as it was on any date when a backup ran. Click the Time Machine icon in the menu bar (or search for Time Machine in Spotlight), select the date you want, find your file, and click "Restore." This is much faster and more reliable than recovery software.
If you use iCloud Drive, open Finder, click "iCloud Drive" in the sidebar, find the file or folder, right-click it, and select "See All Versions." You can browse older versions and restore the one you want. This works only for files stored in iCloud Drive, not for files on your local drive.
Using recovery software when backups are not available
DiskWarrior and Data Rescue are the two most reliable recovery tools for Mac. Both scan your drive for deleted files and show you what they find. DiskWarrior costs around $100 and is simpler to use. Data Rescue costs around $100 as well and works on both Mac and Windows drives.
To use either tool, read it on a different Mac or on the same Mac before you delete the file (if you realize the deletion after the fact, read it on another machine and run it from an external drive). Install it, plug in your Mac's drive as an external drive if necessary, and run a scan. The software will show you deleted files it can find. Select the ones you want and choose a destination to save them — use an external drive, not your Mac's internal drive, to avoid overwriting the files you are trying to recover.
Recovery software works best on traditional hard drives and on SSDs that have not yet run TRIM. On a heavily used SSD, the chances drop significantly because the drive has already erased the space where your file was. If recovery software finds nothing, the data is likely gone.
Recovering a file that was replaced with a newer version
If you saved a new file over an old one with the same name, the old version is still on your drive until your Mac writes something else over that space. Recovery software can sometimes find it, but your backup is a faster option.
Check Time Machine first. Open Time Machine, navigate to the date before you saved the new version, find the file, and restore it. The old version will be restored to its original location or to a folder you choose. If you use iCloud Drive, check "See All Versions" for that file — iCloud keeps older versions for 30 days by default.
If you do not have a backup, use DiskWarrior or Data Rescue to scan for the old file. The software may find multiple versions of the file on disk. Look at the file size and modification date to identify which one is the version you want, then restore it to an external drive.
What to do if recovery software finds nothing
If DiskWarrior or Data Rescue scans your drive and returns no results, the space where your file was has been overwritten. On an SSD, this can happen within hours. On a traditional hard drive, it depends on how much you have used your Mac since the deletion.
At this point, recovery is not possible without sending your drive to a data recovery service — a process that costs several hundred dollars and works only if your drive itself is not damaged. For most people, this is not worth the cost unless the file is critical to your business or contains irreplaceable data.
The lesson is to set up backups before you need them. Time Machine is built into macOS and requires only an external drive. iCloud Drive backs up files automatically if you use it. Either one would have let you restore your file in minutes instead of hours of troubleshooting.
Preventing accidental deletion and replacement in the future
Turn on Time Machine now, before you delete anything else. Plug in an external drive (at least as large as your Mac's drive), open System Settings, go to "General" > "Time Machine," click "Add Backup Disk," and select your external drive. Time Machine will run automatically and keep hourly backups for 24 hours, daily backups for a month, and weekly backups for as long as the drive has space.
For files you edit often, use iCloud Drive instead of your local drive. Any file in iCloud Drive is backed up automatically and you can see all previous versions. If you replace a file by accident, you have 30 days to restore an older version.
Enable Trash protection if you want an extra layer of safety. Some third-party tools like Permanent Eraser let you mark files as "protected" so they cannot be deleted without a password. For most people, Time Machine is enough — it is free, automatic, and works without any thought on your part.
Frequently Asked Questions
Can I recover a file if I have already emptied the Trash?
Yes, if your Mac has not written over that space yet. Use DiskWarrior or Data Rescue to scan your drive. On a traditional hard drive, you may have days or weeks. On an SSD, you may have only hours. The sooner you try, the better your chances. Do not use your Mac for anything else while waiting to run recovery software.
How long does it take to recover a file with recovery software?
A scan of your entire drive can take 30 minutes to several hours, depending on the size of your drive and how full it is. Once the scan is done, restoring the file itself takes only a few minutes. Plan for at least an hour from start to finish.
Will recovery software find all my deleted files?
No. Recovery software finds files whose data is still on the drive. If your Mac has already written over that space, the file is gone. On SSDs, this happens faster than on traditional drives because the drive automatically erases unused space. The older the deletion, the less likely recovery is to work.
Is it safe to use recovery software on my Mac?
Yes, as long as you do not save the recovered files back to your Mac's internal drive. Always save them to an external drive instead. This prevents the recovery software from overwriting other deleted files you might want to recover later.
What if I replaced a file and do not have a backup?
Check Time Machine and iCloud first — you may have a backup without realizing it. If you do not, use DiskWarrior or Data Rescue to scan for the old version. The software may find it if your Mac has not written over it yet. If the scan finds nothing, the old version is gone.