SQL SERVER – Unable to Uninstall – Index was Outside the Bounds of the Array

(Pinal Dave) This was an interesting error which I received while trying to uninstall SQL Server. In this blog, we would learn how to fix error Index was outside the bounds of the array, which might come during uninstallation of SQL Server.