Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove all node_modules folders recursively

//Find all Node Modules
find . -name 'node_modules' -type d -prune

//Remove Files
find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +
 
PREVIOUS NEXT
Tagged: #remove #folders #recursively
ADD COMMENT
Topic
Name
1+3 =