Paco
Personal Content Organiser
Home
/
Linux
Navigation
Debian/Ubuntu
Gentoo
apache
Up
Menu
Login
Search
Delete node_modules directory recursively from a specified path using command line
Print out a list of directories to be deleted:
find . -name 'node_modules' -type d -prune
Delete directories from the current working directory:
find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +