# package management – How to uninstall Eclipse C/C++ IDE

I’ve looked around for answers to my question but none are what I need. I installed Eclipse by downloading the package from the Eclipse website and running the following commands:

cd /opt
sudo gedit eclipse.desktop


And then I added this text to eclipse.desktop:

[Desktop Entry]
Name=Eclipse
Type=Application
Exec=/opt/eclipse/eclipse
Terminal=false
Icon=/opt/eclipse/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Name[en]=Eclipse
Name[en_US]=Eclipse


And finally I ran this command:

sudo desktop-file-install eclipse.desktop


I can’t uninstall Eclipse using apt or snap, so how do I get rid of it?