how to delete jdk from ubuntu code example
Example 1: linux remove java 11
sudo apt remove openjdk-11*
sudo apt remove icedtea*
Example 2: how to uninstall openjdk in linux
sudo apt-get autoremove openjdk-11-jre
sudo apt remove openjdk-11*
sudo apt remove icedtea*
sudo apt-get autoremove openjdk-11-jre