Duplicate files on a Mac: we found 4.4 GB, and almost none were safe to delete one by one
Duplicate-finder apps make a tempting promise: scan the Mac, find every file that exists twice, delete the extra copies, get gigabytes back. We wanted to know what that looks like on a real Mac, so we ran the same kind of scan on our own home folder and looked at every duplicate it found.
The short answer: the scan found 4.36 GB of duplicates. Almost all of it was copies that apps and tools had made on purpose, and deleting them one file at a time would have broken those apps. The only duplicate that was ours to delete was a 2.2 MB video saved in two folders.
How we scanned
The Mac: a Mac mini (M4, 256 GB) running macOS 27.0.1, on 26 October 2026. We used a short script that does what most duplicate finders do:
- List every file in the home folder, skipping
~/Library, the Trash, Photos libraries, apps,.gitandnode_modulesfolders. - Keep only files of 1 MB or more (small files add up to little).
- Group files of exactly the same size. Two files of different size can't be the same.
- Read only the files that share a size and compute a SHA-256 checksum of their content. Same checksum means byte-for-byte identical.
- For each extra copy, ask APFS how much of it is really its own (more on that below).
The size step does most of the work. Of 244,881 files (31.6 GB), only 462 files (11.0 GB) shared a size with another file and needed reading. The whole scan took 15 seconds.
What it found
| What the duplicates were | Groups | Extra copies take | Safe to delete one by one? |
|---|---|---|---|
Files inside a database folder we had copied for a test (pg18 and pg18r) | 52 | 3,708 MB | No. They are the database's own files |
Libraries inside Python app environments (venv folders) | 20 | 367 MB | No. Each app loads its own copy |
| iOS frameworks in app projects and a build archive | 9 | 112 MB | No. Xcode expects them where they are |
| A database's temporary redo log files | 1 | 98 MB | No. The database manages them |
Build output (dist, build, .next folders) | 11 | 71 MB | Only as whole folders, which a rebuild recreates |
| Gradle download cache | 2 | 5 MB | No. Use Gradle's own cleanup |
| A short video saved in two folders | 1 | 2.2 MB | Yes |
| Total | 96 | 4,363 MB |
96 groups held 182 extra copies. The biggest single group was a 1,074 MB file that existed in both database folders. A duplicate finder sorted by size would have put it at the top of the list with a tick next to it.
Why identical files aren't always clutter
A file is clutter when nothing needs it. Most of what we found was needed in both places:
- Apps keep their own copies on purpose. Every Python environment carries its own copy of a library such as
libcrypto(one 5.0 MB copy existed 7 times). Delete "the duplicate" and the app that owned it stops starting. - A file inside a folder belongs to the folder. The database folder had been copied as a whole. Deleting the copy of one file inside it leaves a damaged database, not a smaller one. The right question was "do we still need the copied folder?", and that's a decision about the folder, not 52 files.
- Some duplicates are built output. Build folders hold copies of the source. Deleting the whole folder is fine, because the next build makes it again; deleting a few files from it is not.
Our Mac is a developer's machine, so its duplicates come from developer tools. On a family Mac the same pattern shows up in other places: Photos keeps originals inside its library, music apps keep their own files, and iPhone backups contain copies of photos you also have elsewhere. The rule is the same: delete duplicates you made yourself (a download saved twice, a folder copied "just in case"), and leave the ones inside an app's folder to that app.
The APFS catch: some duplicates take no space
Macs use APFS, which can make a clone: a copy that shares the original's storage until one of them is changed. Finder makes clones when you duplicate or copy a file on the same disk. A clone looks like a full copy in Finder and in every size column, but deleting it frees almost nothing.
We tested it with a 50 MB file and two copies of it: one made with plain cp (a real copy) and one with cp -c (a clone, which is what Finder does). Free space before and after deleting each:
| Deleted | APFS says it owns | Free space gained |
|---|---|---|
The clone (cp -c) | 0 bytes | 0 MB |
The real copy (cp) | 52,428,800 bytes | 52 MB |
Both copies showed as 52.4 MB in a listing. Only one of them was worth deleting. That's why our scan asked APFS for each copy's "private size" (the part not shared with any other file). On our Mac, every one of the 182 extra copies turned out to be a real copy: tools that make copies with plain file writes don't clone. But a folder of photos you duplicated in Finder would show up in a duplicate finder as gigabytes that, deleted, give you nothing back.
Free ways to find duplicates you made yourself
Photos: the built-in Duplicates view
Photos finds duplicate photos and videos by itself. Open Photos, look under Utilities in the sidebar for Duplicates, select rows and click Merge. Photos keeps one copy and moves the others to Recently Deleted, where you can get them back for 30 days. This is the safe way: never delete files from inside the Photos library folder in Finder.
Music: Show Duplicate Items
In the Music app, choose File → Library → Show Duplicate Items. Hold the Option key for Show Exact Duplicate Items, which only lists songs where the name, artist and album all match. Remove them from inside Music.
Downloads: files saved twice
The most common duplicate you made yourself is a download saved twice, which macOS names file (1).pdf. A Finder search for (1) inside Downloads finds them. Check the date and size match the original before deleting.
Terminal: an exact check before you delete
If two files look the same, this tells you for certain. It only reads, never changes anything:
# same output on both lines = same content
shasum -a 256 ~/Downloads/report.pdf ~/Documents/"report (1).pdf"
# files of 100 MB or more in your home folder, biggest last
find ~ -path ~/Library -prune -o -type f -size +100M -print0 2>/dev/null | xargs -0 du -h | sort -h | tail -20Before you delete a duplicate
- Is it inside an app's folder? A Photos or Music library,
~/Library, a project, an environment or a database folder. Then leave it, or remove the whole folder through the app that made it. - Is it a clone? If you made the copy in Finder on the same disk, deleting it may free nothing.
- Did you make both copies? Then keep the one in the folder you'd look in first, and move the other to the Trash.
- Wait before emptying the Trash. A few days is enough to notice if something needed it.
If your disk is full and duplicates were your first guess, our measured list of the five usual suspects is the better place to start: on our Mac, old simulators and caches were worth far more than every duplicate together.
Where Zofle fits. Zofle, our free Mac app coming soon to the Mac App Store, only suggests duplicates that are yours to remove: downloads saved twice and half-finished downloads, never files inside an app's folder. It shows each file with its size and date, lets you untick what you want to keep, and moves everything to the Trash first. Join the waitlist and get Zofle Pro free when it launches.
Sources and method
- Our scan, 26 October 2026: Mac mini (M4, 256 GB), macOS 27.0.1. A Python script grouped files of 1 MB or more by size, hashed same-size files with SHA-256 and read each copy's private size with
getattrlist(ATTR_CMNEXT_PRIVATESIZE). Sizes are in decimal megabytes, as Finder shows them. Nothing was deleted except our own test files. - Our clone test: a 50 MB random file copied with
cpandcp -c; free space read withdf -kbefore and after deleting each copy. - Apple Support: Find and merge duplicate photos and videos in Photos on Mac.
- Apple Support: Find duplicate items in Music on Mac.
- Howard Oakley, The Eclectic Light Company: APFS: Files and clones (Finder copies on the same volume are clones).
Zofle Pro news
People signing up now will get Zofle Pro, with more features, for free when we launch it.