How to uninstall Java via Command Line At the %% you can also provide the name of one version like: Java 8 Update 111 wmic product where "name like 'Java%%'" call uninstall /nointeractive The Command will remove every Java Version on the System