As a JavaScript developer, you've likely collected countless node_modules folders over time. These directories can grow massive and are often left behind by forgotten or abandoned projects.
In this post, weโll walk through how to easily find and delete these folders on Windows using the Everything search utility.
๐ค Why Delete node_modules Folders?
- They take up huge amounts of disk space
- Often leftover from projects you no longer use
- Cleaning them improves file system performance

Credit: https://tsh.io
๐ฅ Step 1: Install the Everything App
Everything is a super-fast search tool for Windows that can instantly find files and folders by name.
๐ Download Everything

The voidtools website for Everything download
๐ Step 2: Search for node_modules
Open Everything and type node_modules
Youโll instantly see all node_modules folders across all your drives.
๐ Step 3: Sort by Size (Optional)
To find the largest folders first:
- Right-click the column headers.
- Enable the Size column.
- Click on Size to sort in descending order.
โ Step 4: Verify Before Deleting
Right-click on any folder and choose โOpen pathโ to inspect its contents.
Make sure itโs safe to delete (i.e., not from a current project).
๐๏ธ Step 5: Delete Multiple Folders at Once
- Use Ctrl or Shift + Click to select multiple entries.
- Press Shift + Delete to permanently remove them.
โ ๏ธ Be careful! This bypasses the Recycle Bin.
โก Bonus: PowerShell Cleanup Script
Want to automate the cleanup? Try this PowerShell script:
Get-ChildItem -Path C:\ -Recurse -Directory -Force -ErrorAction SilentlyContinue \
-Filter node_modules | Remove-Item -Recurse -Force -WhatIf
Replace
-WhatIfwith-Confirm:$falseto actually delete the folders.
๐๐ผ Conclusion
With the Everything app, cleaning up old node_modules folders is fast, easy, and satisfying. Clear the clutter and reclaim your disk space today!




Top comments (0)