Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

calling rmdir node_modules /S /Q from powershell

Is it possible to call:

rmdir node_modules /S /Q

From powershell. I get the dreaded path too long error with certain folders in powershell. Using rmdir would get round this.

like image 352
dagda1 Avatar asked Sep 19 '26 19:09

dagda1


1 Answers

rmdir is a CMD builtin command. You can use it from PowerShell by calling cmd.exe:

& cmd /c rmdir node_modules /s /q
like image 81
Ansgar Wiechers Avatar answered Sep 21 '26 10:09

Ansgar Wiechers



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!