how to uninstall netbeans on ubuntu

C++
sudo apt autoremove netbeans

sudo apt-get remove --purge netbeans
Source

Also in C++: