how to uninstall java on ubuntu server 20.04 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"