Powershell Remove Node Modules

[Solved] Powershell Remove Node Modules | Powershell - Code Explorer | yomemimo.com
Question : powershell remove node_modules

Answered by : jan-ustr

<#
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 : https://gist.github.com/SynCap/3dded8070dce3013fdc3fd4f95383651 | Last Update : Tue, 24 May 22

Answers related to powershell remove node modules

Code Explorer Popular Question For Powershell