There isn't really an uninstall
command kind of thing in cmd that I know of. You could however query this reg key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
(might also need to check HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall
if you're on a 64-bit machine)
to find the program you want to uninstall. Each one will have an UninstallString
value which will tell you the path to the programs uninstaller file which you can then execute by calling it's full path and filename.
If the uninstaller happens to be an msi you can use
msiexec /uninstall /x
to silently uninstall it. This is about as much as you can do with batch I think.
Hope this helps!