title: How to uninstall JDK on Mac OS?
body: <p>Folks - I am facing challenges while trying to uninstall JDK from my MAC (macOS High Sierra Version 10.13.4 - 17E199). I have two JDK instances installed and I want to uninstall both of them.</p>
  
  <p>I am following the steps listed on this page: <a href="https://docs.oracle.com/javase/8/docs/technotes/guides/install/mac_jdk.html" rel="noreferrer">https://docs.oracle.com/javase/8/docs/technotes/guides/install/mac_jdk.html</a></p>
  
  <p>I am trying to run this command in the /Library/Java/JavaVirtualMachines directory which throws an error that I do not have the permission.</p>
  
  <pre><code>rm -rf jdk1.8.0_06.jdk
  </code></pre>
  
  <p>I am the administrator of the machine and am not sure what more permission do I need. I have made attempts as the admistrator and as the root user with no success.</p>
  
  <p>Please share your thoughts on this.</p>