Uninstalling Oracle Java (current version) involves deleting the Java Plugin file JavaAppletPlugin.plugin.
Open your Terminal, copy and paste the following line:
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
If you need to downgrade java, see related post: how to downgrade java (java 7, Java 8, java x).