How To Uninstall NetBeans On Ubuntu
The uninstallation process for NetBeans are very easy-
1. Shut down the IDE.
2. In the IDE installation directory, run the uninstall.sh file.
3. To uninstall GlassFish and Tomcat together with the IDE, at the Summary page make sure that the correct versions are listed and check the appropriate checkboxes.
4. At the Summary page, click Uninstall.
5. After uninstallation completes, click Finish.
Read More: How To install NetBeans On Ubuntu