Skip to content

node_modules

Last updated 1 November 2026

What it is, where it lives on your Mac, and whether it’s safe to delete.

Safe to delete

Yes. Comes back with npm install.

Where it is

Usually a node_modules folder inside each JavaScript project. DiskCity recognises it by what's inside, wherever it is.

Is it safe to delete?

Yes. Comes back with npm install.

How to remove it

  1. Leave anything opened or changed less than 7 days ago (for a folder, its newest file counts). DiskCity waits that long too.
  2. Remove it from inside the app or tool that made it, or find it in Finder and move it to the Trash.

What DiskCity does with it

DiskCity labels it as rebuildable and removes it when you approve, or on its own if you turn on Autopilot. It only suggests it once it hasn't been used for 7 days.