Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 1saeedsalehi/50ebb7858eaabcc7c4a03540bc652e93 to your computer and use it in GitHub Desktop.
Save 1saeedsalehi/50ebb7858eaabcc7c4a03540bc652e93 to your computer and use it in GitHub Desktop.
Delete bin obj node_modules folder from whole project
@ECHO off
cls
ECHO Deleting all BIN and OBJ folders...
ECHO.
FOR /d /r . %%d in (bin,obj) DO (
IF EXIST "%%d" (
ECHO %%d | FIND /I "\node_modules\" > Nul && (
ECHO.Skipping: %%d
) || (
ECHO.Deleting: %%d
rd /s/q "%%d"
)
)
)
ECHO.
ECHO.BIN and OBJ folders have been successfully deleted. Press any key to exit.
pause > nul
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment