I am trying to remove visual studio code that is in code_1.72.2-1665614327_amd64.deb.
I used this to install.
gdebi code_1.72.2-1665614327_amd64.deb
I have tried this to un-install.
andy@7 ~> sudo dpkg -r code_1.72.2-1665614327_amd64.deb
dpkg: error: you must specify packages by their own names, not by quoting the names of the files they come in
According to this, there should be a /usr/share/code/ directory, but it does not exist.
sudo apt purge code
Reading package lists... Done
Building dependency tree
Reading state information... Done
No apt package "code", but there is a snap with that name.
Try "snap install code"
E: Unable to locate package code