
Still in use like those listed in Optional shared packages. Warning: Running this command may remove some packages even if they are MSDN: How to uninstall Visual Studio 2010/2012.

Microsoft provide an uninstall /force feature that removes most remnants of either VS2010 or VS2012 from your computer. Here is the link to the download page of the VS2010 UU. Afterwards, use something like CCleaner to remove the leftover registry files.

The above link explains the uninstaller in greater detail - I recommend reading the comments on the article before using it as some have noted problems (and workarounds) when service packs are installed. There's an uninstaller provided by Microsoft called the Visual Studio 2010 Uninstall Utility. Note that the following two solutions still leave traces (such as registry files) and can't really be considered a 'clean' uninstall (see the final section of the answer for a completely clean solution). There has finally been an official release for this uninstaller in April 2016 which is described as being "designed to cleanup/scorch all Preview/RC/RTM releases of Visual Studio 2013, Visual Studio 2015 and Visual Studio vNext".

They abandoned the solution for a while however work has begun again again as of April 2016. Microsoft started to address the issue in late 2015 by releasing VisualStudioUninstaller.
