To uninstall Windows 7: https://support.microsoft.com/en-us/kb/971762

To uninstall Windows 8: http://www.intowindows.com/how-to-uninstall-windows-8/