I installed Netbeans IDE some time ago (on Ubuntu 19.04) and don't remember the exact method I used to do so. I'm sure it wasn't using
apt install because running
sudo apt remove netbeans returns:
Reading package lists... Done Building dependency tree Reading state information... Done Package 'netbeans' is not installed, so not removed
In the Software Center there's no "uninstall" option as well.
locate netbeans I found what seems to be netbeans installation folder in
/opt/netbeans, but there's no
uninstal.sh file there.
All the questions I found with similar titles pointed to uninstall netbeans using the
uninstall.sh file, the Software Center or the
sudo apt remove netbeans command, but none of these solutions are working.