search path in windows search open edit system environment variable → Enviroment Variables… ->select JAVA_HOME and delete it.
If you want to undo this delete you should save the current path to JAVA_HOME somewhere and you can easily add it back with the new button.