When this script is run it will remove all bin, obj, bld, Backup, _UpgradeReport,_Files, Debug, Release, and ipch folders from the directory the script is in and all sub-directories. To use this script open up Notepad and copy and paste the script into the Notepad window. Once this is done, save the file as CleanVsProjects.ps1. Save this file to the main directory of where you store your Visual Studio projects. To run the script in Windows, simply right click on it and press the Run with PowerShell button. All these folders will be deleted.
Note, that if you create any folders that have the same folder names as those specified in this script, they will also be deleted. Also, if you find that there are some other folders you would like to delete simply add then to the comma delimited list of folder names.