# If you installed via Snap: $sudo snap remove vscode.
#If you installed via apt: $sudo apt-get purge code.
# If you installed via Ubuntu Software, open Ubuntu Software, look for the app in the installed category, and click on remove.
#I did it with the following command:
sudo apt purge code
# to uninstall the program and then:
sudo apt autoremove