Free Up Space: Delete node_modules Using Everything

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 delet…


This content originally appeared on DEV Community and was authored by Lakshya Singh Chauhan

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

Heaviest objects
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

Voidtools download page
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.

Everthing Selected
All of the selected files

📊 Step 3: Sort by Size (Optional)

To find the largest folders first:

  1. Right-click the column headers.
  2. Enable the Size column.
  3. Click on Size to sort in descending order.

Sort by size
Sorting by size

✅ 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).

Verifying
Verifying

🗑️ Step 5: Delete Multiple Folders at Once

  1. Use Ctrl or Shift + Click to select multiple entries.
  2. Press Shift + Delete to permanently remove them.

⚠️ Be careful! This bypasses the Recycle Bin.

There go the files!
There go the files!

⚡ 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 -WhatIf with -Confirm:$false to 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!


This content originally appeared on DEV Community and was authored by Lakshya Singh Chauhan


Print Share Comment Cite Upload Translate Updates
APA

Lakshya Singh Chauhan | Sciencx (2025-07-30T15:29:56+00:00) Free Up Space: Delete node_modules Using Everything. Retrieved from https://www.scien.cx/2025/07/30/free-up-space-delete-node_modules-using-everything/

MLA
" » Free Up Space: Delete node_modules Using Everything." Lakshya Singh Chauhan | Sciencx - Wednesday July 30, 2025, https://www.scien.cx/2025/07/30/free-up-space-delete-node_modules-using-everything/
HARVARD
Lakshya Singh Chauhan | Sciencx Wednesday July 30, 2025 » Free Up Space: Delete node_modules Using Everything., viewed ,<https://www.scien.cx/2025/07/30/free-up-space-delete-node_modules-using-everything/>
VANCOUVER
Lakshya Singh Chauhan | Sciencx - » Free Up Space: Delete node_modules Using Everything. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/07/30/free-up-space-delete-node_modules-using-everything/
CHICAGO
" » Free Up Space: Delete node_modules Using Everything." Lakshya Singh Chauhan | Sciencx - Accessed . https://www.scien.cx/2025/07/30/free-up-space-delete-node_modules-using-everything/
IEEE
" » Free Up Space: Delete node_modules Using Everything." Lakshya Singh Chauhan | Sciencx [Online]. Available: https://www.scien.cx/2025/07/30/free-up-space-delete-node_modules-using-everything/. [Accessed: ]
rf:citation
» Free Up Space: Delete node_modules Using Everything | Lakshya Singh Chauhan | Sciencx | https://www.scien.cx/2025/07/30/free-up-space-delete-node_modules-using-everything/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.