Recover Deleted Files on Mac: Step-by-Step Guide + Tools
Quick answer: Stop using the drive immediately, check the Trash and Time Machine, then run a trusted data recovery utility (e.g., Disk Drill) or follow manual restore methods. For best results, recover to a different drive.
- Immediate actions: stop writing to disk, check Trash & backups, scan with recovery software
How deleted files work on macOS (and why recovery is possible)
When you delete a file on macOS, the operating system typically removes the file’s directory entry while leaving the underlying data blocks on the storage medium until they are overwritten. On HFS+ and APFS volumes the file’s metadata is updated, but unless the sectors are reallocated for new files the original bytes remain intact for some time.
On SSDs, TRIM changes the picture: when an OS issues a TRIM command the SSD controller may mark the blocks as erased to optimize performance, making recovery far less likely. APFS snapshots, Time Machine local snapshots, and iCloud backups can provide additional recovery points that avoid raw disk scanning altogether.
Knowing how deletion works helps prioritize actions: stop creating new files, avoid installing recovery software on the affected volume, and check logical backups first (Trash, Time Machine, iCloud Drive) before starting a full sector scan with recovery tools.
Immediate steps to recover deleted files on Mac
Act fast. The moment you notice a deletion, power down or stop using the Mac if the files were on the system volume. Continued use increases the chance those sectors will be overwritten. If possible, connect the drive as an external volume to another Mac and run recovery there.
Follow this sequence to maximize recovery success (recommended order):
- Check the Trash. If files are there, select and choose Restore—this is instant and risk-free.
- Look for backups: Time Machine, iCloud Drive, and any third-party cloud or local backup may have copies you can restore instead of scanning the disk.
- If no backups exist, use a recovery tool to scan the drive. Choose software that supports APFS and HFS+ and offers a read-only scan/preview before recovery.
Do not install the recovery app onto the same drive you are trying to recover from. Always recover files to a separate internal or external disk. That prevents overwriting the very data you want to retrieve.
Using data recovery software: Disk Drill and alternatives
Data recovery software automates the process of searching for orphaned file records, reconstructing file headers, and assembling recoverable files. Tools vary in speed and accuracy: Disk Drill provides a user-friendly interface with quick and deep scans, previewing recovered files before restoration. For script-based or open-source options, PhotoRec and TestDisk are reliable alternatives, while commercial options include Stellar and EaseUS.
How to use Disk Drill safely: download the installer to a different drive, run a read-only scan, preview results, and recover only the files you need to a separate target disk. Disk Drill can handle APFS, HFS+, FAT/exFAT, and common file formats, and it includes features to create a byte-to-byte disk image if the drive is failing.
If you prefer code-first resources, see this repository for practical scripts and documented recovery steps: Recover Deleted Files on Mac. That guide complements GUI recovery tools by adding command-line techniques and checks for snapshots and mount states.
When recovery is unlikely and professional help is needed
Recovery success depends on overwrite activity and storage type. For magnetic HDDs that were recently written, recovery often succeeds. For SSDs with active TRIM or environments where secure erase was used, data may be irrecoverably gone. Encrypted volumes without the key are effectively unrecoverable as well.
If the disk makes unusual noises, has hardware faults, or shows SMART warnings, stop all attempts and consult a professional data recovery lab. These labs have clean-room facilities and specialist imaging tools that can extract data from damaged platters or controllers—at a cost, but sometimes the only option.
Before sending a drive to a lab, prepare a clear timeline of events (what was deleted, when, how the disk was used afterward) and avoid using DIY fixes that could accelerate degradation. Labs occasionally accept disk images you create yourself; if you can create a forensic image without stressing the hardware, that helps speed recovery and reduce costs.
Prevention and best practices
Recovery is always easier with a backup. Enable Time Machine and keep at least one external backup drive physically separate. Use iCloud Drive for critical documents and set up versioning for apps that support it. For developers and power users, periodic APFS snapshots and offsite backups provide efficient rollback points.
Adopt a 3-2-1 backup strategy: three copies of your data, on two different media, with one copy offsite. Test your backups: a backup that can’t be restored is just a file list. Regularly verify that your Time Machine snapshots and cloud backups are completing successfully.
Finally, be mindful of where you install software and how you configure TRIM and secure erase on SSDs. If you rely on recovery tools as a safety net, understand the limitations of SSD recovery and prioritize proactive backups.
Tools quick-reference
For a fast toolkit selection: Disk Drill (commercial, user-friendly), PhotoRec/TestDisk (open-source, effective but technical), Stellar & EaseUS (commercial alternatives). Use multiple tools only if scans are read-only; cross-check previews before recovering.
Remember: never recover to the same volume, and consider creating an image first if the drive shows instability. Imaging preserves the source and lets you run multiple recovery attempts against a stable copy.
For more hands-on scripts and step-by-step commands, check the community resource here: Recover Deleted Files on Mac (GitHub). It pairs well with GUI tools like Disk Drill when manual inspection or specialized commands are needed.
FAQ
Can I recover files emptied from Trash on Mac?
Often yes—if the disk sectors containing the file data haven’t been overwritten. First check Trash, Time Machine, and any cloud backups. If those have no copy, run a read-only scan with recovery software and recover to a different disk.
How long after deletion can I recover files on Mac?
There’s no fixed window—recovery depends on whether those disk blocks are overwritten. The sooner you stop using the drive, the higher the chance of success. For HDDs you may recover files days or weeks later; for TRIM-enabled SSDs, recovery chances fall rapidly.
Is Disk Drill safe and effective for Mac file recovery?
Disk Drill is widely used and considered safe when you avoid installing it on the affected volume. It offers free scanning and previews, then a paid recovery option. Effectiveness varies by file system, storage condition, and how long since deletion.
Semantic Core (keyword clusters)
Primary:
- recover deleted files mac
- restore deleted files mac
- mac recover deleted files
- how to recover deleted files mac
- recovering deleted files mac
Secondary:
- data recovery software
- disk drill
- recover files emptied trash mac
- restore from time machine mac
- apfs snapshot recover
- recover deleted folder mac
- recover deleted partition mac
Clarifying / LSI:
- mac file recovery
- undelete mac
- recover deleted files mac ssd trim
- recover formatted drive mac
- photo recovery mac
- recover deleted files mac terminal
- time machine restore deleted files
- how long to recover deleted files mac
- best data recovery software for mac
- recover files from external hard drive mac









