how to remove installed JRE from linux code example
Example 1: linux remove java 11
sudo apt remove openjdk-11*
sudo apt remove icedtea*
Example 2: uninstall java 11 linux
sudo update-alternatives --remove "java" "/usr/lib/jvm/jdk[version]/bin/java"