Hi!
Some time ago I created a Console App in .Net that cleaned all the temporary and build directories in a solution. This App was quite useful when I want to share something in a new repository on GitHub, using this App I saved a few minutes of search and delete.
Today I have found this excellent script with similar features, you only need to save this into a .bat or .cmd file
FOR /F “tokens=*” %%G IN (‘DIR /B /AD /S bin’) DO RMDIR /S /Q “%%G”
FOR /F “tokens=*” %%G IN (‘DIR /B /AD /S obj’) DO RMDIR /S /Q “%%G”
FOR /F “tokens=*” %%G IN (‘DIR /B /AD /S Binaries’) DO RMDIR /S /Q “%%G”
FOR /F “tokens=*” %%G IN (‘DIR /B /AD /S packages’) DO RMDIR /S /Q “%%G”
Download file https://github.com/elbruno/Blog/tree/master/20180301%20clean%20script
Happy Coding!
Saludos @ Toronto
El Bruno