How to delete duplicate files on Mac (safely)
Deleting duplicates manually is risky. Here's the safe workflow, and the faster automated path.
Deleting duplicate files looks simple — pick the older copy, hit delete — until you realize “older” doesn’t always mean “wrong” and “same name” doesn’t always mean “same file.” Here’s how to do it without losing anything that matters.
The two rules
- Never delete a duplicate unless you've confirmed the other copy is byte-identical and accessible.
- Never permanent-delete. Always go via the Trash so you have a recovery window.
Break either rule and you’re one mistake away from regret.
The manual workflow
If you only have a handful of suspected duplicates:
- Open both copies in Finder. Compare their sizes — if they differ even by 1 byte, they're not duplicates.
- If sizes match, hash both files. In Terminal:
shasum -a 256 /path/to/file1 /path/to/file2 - If hashes match, they're byte-identical. Drag the unwanted copy to the Trash.
- Don't empty the Trash for at least a day — gives you time to notice if you removed the wrong one.
This works for two or three files. For more, it gets tedious fast.
Why “same name” isn’t enough
Three common false-positive traps:
- Auto-renamed files. “Report.pdf” and “Report 2.pdf” might be different versions, not copies.
- Photos with same name from different cameras. Both your iPhone and your friend’s iPhone produce “IMG_0001.JPG.”
- Files modified after copy. You duplicated “draft.docx,” edited one, now they have the same name but different content.
Always verify by hash or size before trashing.
Why “same size” isn’t enough either
Two different photos can both be 4.2 MB. Two different ZIPs can both be 12.6 MB. Size narrows the field but doesn’t confirm a match.
The automated workflow
For more than a few files, manual gets impractical. The right tool hashes everything for you.
Download Dupe. It:
- Walks the folders you point it at.
- Computes a SHA-256 hash for every file.
- Groups files with identical hashes — guaranteed byte-identical, no false positives.
- Shows you each group with paths and sizes so you can pick what to keep.
- Moves your selected duplicates to the Trash on confirmation.
What Dupe will not do by design:
- Permanent-delete anything (everything goes to Trash, recoverable for 30 days)
- Touch system files or application bundles (excluded automatically)
- Flag files as duplicates based on name or size alone
Dupe is a $14.99 one-time purchase. On most Macs the first scan recovers 5–20 GB.
After deletion
Wait at least a few days before emptying the Trash. If everything still works as expected, empty it. Or set Finder > Settings > Advanced > “Remove items from the Trash after 30 days” and let macOS handle it.
More Dupe tips
-
Apple Photos Duplicates album — what it catches and what it misses
The Photos app Duplicates album is handy, but it has real limits. Here's what it finds, what it doesn't, and how to fill the gaps.
-
Clean up leftover files from uninstalled apps on Mac
Dragging an app to the Trash doesn't remove all its data. Here's where the leftovers live and how to clean them.
-
Clean up your Mac without buying a cleaner app
Most paid cleaner apps do things macOS already does. Here's a free, manual workflow that's just as effective.
-
A no-bullshit guide to cleaning up your Mac's disk
Skip the SEO bait and the sketchy cleaner apps. Here's what actually works to reclaim disk space on a Mac.