delete java 8 ubuntu code example Example: linux remove java 11 sudo apt remove openjdk-11* sudo apt remove icedtea*