Skip to content

Instantly share code, notes, and snippets.

@shawnwildermuth
Created February 9, 2021 21:34
Show Gist options
  • Save shawnwildermuth/f2a549053f594d6bb3877451c0f9aa1c to your computer and use it in GitHub Desktop.
Save shawnwildermuth/f2a549053f594d6bb3877451c0f9aa1c to your computer and use it in GitHub Desktop.
@echo off
echo Cleaning node_modules Directories
FOR /d /r . %%d IN (node_modules) DO (call :deleteDirs "%%d")
echo Cleaning bin Directories
FOR /d /r . %%d IN (bin) DO (call :deleteDirs "%%d")
echo Cleaning obj Directories
FOR /d /r . %%d IN (obj) DO (call :deleteDirs "%%d")
echo Cleaning .bak files
del /S *.bak
goto :eof
:deleteDirs
@IF EXIST %1 (
@echo Deleting %1
rimraf %1
)
goto :eof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment