Skip to content

Instantly share code, notes, and snippets.

@thomasgalliker
Created October 2, 2015 07:33
Show Gist options
  • Save thomasgalliker/25503165c3058225ae20 to your computer and use it in GitHub Desktop.
Save thomasgalliker/25503165c3058225ae20 to your computer and use it in GitHub Desktop.
Clean script which can be used to clean temporary files of .Net projects
del /s /ah /f *.suo
del /s /f *.user
del /s /f *.cache
del /s /f *.keep
del /s /ah StyleCop.Cache
del /s /f *.nupkg.bak
rd /s /q bin obj ClientBin _Resharper.* _Upgrade* TestResults
del dirs.txt
dir /s /b /ad bin > dirs.txt
dir /s /b /ad obj >> dirs.txt
dir /s /b /ad ClientBin >> dirs.txt
dir /s /b /ad _Resharper.* >> dirs.txt
dir /s /b /ad _Upgrade* >> dirs.txt
dir /s /b /ad TestResults >> dirs.txt
for /f "delims=;" %%i in (dirs.txt) DO rd /s /q "%%i"
del dirs.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment