dnode: Search and Delete Node Modules Folders Recursively

  1. Go to each project and delete the node_modules folder
  2. Use one of the following shell scripts:
  • Windows:
FOR /d /r . %d in (node_modules) DO @IF EXIST "%d" rm -rf "%d"
  • Linux:
find . -name 'node_modules' -type d -prune -print -exec rm -rf '{}' \;
  • PowerShell
Get-ChildItem -Path "." -Include "node_modules" -Recurse -Directory | Remove-Item -Recurse -Force
dnode delete

Instillation

git clone https://github.com/akshaybabloo/dnode.git
cd dnode
go build -o dnode
./dnode --help

Usage

List

Delete

Final Thoughts

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Akshay Gollahalli

Akshay Gollahalli

PhD student, currently doing research on Spiking Neural Networks and Brain Computer Interfaces