Today, I officially uninstall Visual Studio 2015 and upgrade to Visual Studio 2017!! Whenever I do a major upgrade I usually re-format my machine and get a fresh install, but this time I decided not to and just uninstall and clean up my machine as best as I can. While VS 2015 for sure installs tons of stuff all over the place and I can manually uninstall things, I figured it was a good time to help developers clean up space on their machines. I do this every few months because there are always new upgrades, nugets, and android packages that are cached around.
This is the first thing I blow away because I don’t need 5GB of packages cached! Head to:
~/.nuget/packages & ~/.local/share/NuGet
Delete it all! Now all your packages will be re-downloaded.
Android Library Cache
When you install a support package or google play service previously, a ton of files had to be downloaded. Now things are really small, but all versions ever are cached around on your machine, which is a good thing, but let’s purge!
~/.local/share/Xamarin(basically all other mac stuff is in here)
You can blow away anything that starts with Xamarin.___ and zips:
Xamarin only installs SDKs and emulators that you need, but that doesn’t mean that you went in and installed everything. Groom and delete old APIs that you no longer need. You can always re-download from the sdk manger. DO NOT delete the entire directory, only specific platform sdks and avd images.
- PC: `C:\Program Files (x86)\Android\android-sdk`
Hidden Visual/Xamarin Studio Download Cache
When you download updates in older VS 2013/2015 there is a folder where downloads are cached that you can go and clean up. I had a few gigs in there
- PC: `C:\Users\%USERPROFILE%\AppData\Local\MonoDevelop-4.0\Cache\TempDownload`
- Mac: `~/Library/Caches/XamarinStudio-6.0/TempDownload`
- Mac: `~/Library/Caches/VisualStudio/7.0/TempDownload`
There you go, this should get you pretty far to a cleanup of random files you probably don’t need or will just get re-downloaded :)