If env variables changed and you don't want to close the session
refreshenv
Cleans all the bin folders recursively
FOR /F "tokens=*" %G IN ('DIR /B /AD /S *bin*') DO RMDIR /S /Q "%G"
Script to remove all traces in folder for specific file format
FOR /R foldername %%X IN (.hg) DO (RD /S /Q "%%X" 2>nul)