0

I'm trying to remove openjdk but I can't. I have tried a lot of times but I can't. Can someone please help me?

Here is a screenshot of my terminal:

image of terminal

Nmath
  • 12,105
  • 8
  • 25
  • 54
Rodo Rsm
  • 9
  • 1
  • 2
  • 2
    Can you add more details ? What did you try and error you get ? – KK Patel Nov 02 '20 at 17:51
  • 2
    Please do not add screenshots of your terminal. Instead, copy-paste the text in the body of your question and use formatting tools or [markdown](https://askubuntu.com/help/formatting) to render the text properly as `code` – Nmath Nov 02 '20 at 18:49
  • 1
    Check at this answer [here](https://askubuntu.com/questions/335457/how-to-uninstall-openjdk) can help – Omar Elweshy Nov 02 '20 at 18:57

1 Answers1

2

Remove OpenJDK,

sudo apt remove openjdk*

Remove OpenJDK along with dependencies,

sudo apt remove --auto-remove openjdk*

Remove OpenJDK and the configuration files

sudo apt purge openjdk*
Tejas Lotlikar
  • 2,875
  • 5
  • 16
  • 26