Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR POWERSHELL

powershell remove node_modules

<# 
Note: Eliminate `-WhatIf` parameter to get action be actually done 
Note: PS with version prior to 4.0 can't delete non-empty folders
#>

Get-ChildItem -Path "." -Include "node_modules" -Recurse -Directory | Remove-Item -Recurse -Force -WhatIf
Source by gist.github.com #
 
PREVIOUS NEXT
Tagged: #powershell #remove
ADD COMMENT
Topic
Name
9+7 =