Yes, deleting node_modules loses nothing, but in a project still in use it frees nothing for long: the folder comes back within hours. The one worth deleting is a folder nothing will rebuild soon, and the signs of that are on disk.
One folder came back 11 times
Deleted by Mint vs. back on disk, Sep 29 to Oct 3, GB
Almost everything Mint deleted came back
- Deleted
- Back again
Measured on MacBook Pro M1 Max · macOS 27.0.1 · September 29 – October 2, 2026
Between September 29 and October 2, Mint deleted the same node_modules folder 11 times. It came back every time, five times within 20 minutes. The 11 removals freed 7.68 GB in total, for a net gain of zero. Over the same days Mint deleted 35.4 GB of downloaded AI models, and by October 3, 34.3 GB had been downloaded again.
Mint's cleanup rule asked whether a folder could be rebuilt. What mattered was whether something would rebuild it within the hour.
A render needs the folder's 730 MB
The node_modules folder belongs to the project we use to make our videos. A render needs it: 334 MB of packages, 197 MB of headless Chrome (a background browser the video tool downloads the first time it renders), and 176 MB of render cache. About 730 MB in all.
Mint listed it in Safe to clean because a node_modules folder with a lockfile next to it (the file that pins exact package versions) can be reinstalled. That rule said nothing about when the project was last used, and Safe to clean opens with every row ticked, so the folder arrived ticked each time.
Each removal was reinstalled within hours
Every removal was a clean someone started by hand on Mint's Disk page, and every one was permanent. None came from Auto Care. Times are Pacific:
removed installed before back after
Sep 29 23:31 8h 20m 11m
Sep 30 12:15 12h 32m 2h 18m
Sep 30 14:42 9m 13m
Sep 30 18:47 3h 53m 2h 9m
Oct 1 00:39 3h 42m 17m
Oct 1 12:49 11h 53m 4h 39m
Oct 1 18:01 33m 12m
Oct 1 21:48 3h 35m 1h 43m
Oct 2 00:40 1h 9m 13h
Oct 2 14:12 33m 19m
Oct 2 15:51 1h 19m 6h 7m
"Installed before" is the folder's age since the last reinstall; "back after" is the time until the next one. Its median age at deletion was 3h 35m, and the median wait before it came back was 1h 43m.
Each reinstall was quick, 4 to 11 seconds for 257 packages, but it wasn't free. Of the 11 cleans, all 9 with full records also emptied npm's download cache, so reinstalls fetched packages from the npm registry again: 74 MB the one time it was measured. The one render log available shows another 94 MB of headless Chrome downloaded again. Anything a tool fills again on its own behaves the same way.
Deleted models were downloaded again
Models our video pipeline downloads, GB
VoxCPM2 alone is about 5 GB
Measured on MacBook Pro M1 Max · macOS 27.0.1 · September 29 – October 2, 2026
The same cleans removed the Hugging Face cache, where Python tools keep downloaded models. It held the three models our video pipeline uses for the voice and the captions. From September 29 to October 1, Mint removed the whole folder six times and the three model folders once more, 35.4 GB in all. The downloader's own logs account for 12.6 GB of what came back, about 17 minutes of downloading; the rest is inferred from the folder's size before the next removal.
A model is not a cache in the usual sense. Getting it back means a multi-gigabyte download, and the tool that needs it fetches it the next time it runs, without asking.
The signs of use are on disk
Checking whether a program has the files open doesn't help: npm and the video tool open them for seconds, and the cleans ran in between. The signals that work are on disk:
- When it was installed. npm writes
node_modules/.package-lock.jsonat every install. - When the project was last run or edited. The video tool writes its caches into node_modules (
.remotion,.cache) each time it renders, and editing the project updates the project's own files. - Whether it came back. After the first removal, the folder's own history already said: deleted, then created again 11 minutes later.
How to check your own projects
This lists each node_modules under a folder, its size and when npm last installed it. Run it in Terminal; it only reads. Change ~/Projects to wherever you keep code:
find ~/Projects -maxdepth 4 -type d -name node_modules -prune |
while read -r d; do
f="$d/.package-lock.json"
[ -f "$f" ] && t=$(stat -f %Sm -t %Y-%m-%d "$f") || t="unknown "
printf "%6s installed %s %s\n" "$(du -sh "$d" | cut -f1)" "$t" "${d%/node_modules}"
done
A folder installed this week belongs to a project in use, and deleting it buys you only a reinstall. One installed months ago, in a project you've stopped working on, is the kind worth removing. "unknown" means npm didn't write .package-lock.json (Yarn and pnpm use their own files), so check the project's last commit instead. The guide to removing old node_modules covers the lockfile checks before you delete.
Projects in use stay in Keep
- Models have a chip of their own in Safe to clean, one row per model with the date it was last used. They're never ticked for you, Auto Care never removes them, and Mint doesn't offer a model that a program has open or that LM Studio or Ollama is running. Since Mint 1.0.82.
- node_modules of a project used in the last seven days goes to Keep, showing when it was last used. "Used" means the project was installed, run or edited, or a program is working inside it. A folder that was deleted and came back is listed but never ticked for you, and Recommended and Auto Care skip it. Mint checks again at the moment you clean. Since Mint 1.0.91.
What it means
"Can it be rebuilt?" is the wrong question for a cleanup; the useful one is "Will something rebuild it soon?" Folders in projects nobody has touched in months add up, and they're easy to tell apart from the ones in use.
Data: Mint's own records on one Mac running macOS 27.0.1 (26A434), September 29 to October 3: every removal with its time and bytes, the folder's size history, the Hugging Face downloader's logs and the reinstall output. Where the downloader's logs were deleted with the folder, what came back is inferred from the folder's size before the next removal, so those figures are estimates.