How to Completely Uninstall Visual Studio Code from Ubuntu 22.04 LTS

I will show you the normal way to remove Microsoft Visual Studio Code. This is normally all that needs to be done. It will keep the previous VS Code settings. If you reinstall VS Code, your previous settings will be back. This is very convenient.

Sometimes you need to completely remove Microsoft Visual Studio Code and do a fresh install.

How to Uninstall Visual Studio Code from Ubuntu

Here is how to remove Microsoft Visual Studio Code from Ubuntu. This is the normal way to remove an Ubuntu Software app from Ubuntu.

The settings will still be there if you were to reinstall VS Code.

Quit Microsoft Visual Studio Code.

VS Code Uninstall Quit VS Code

Remove Microsoft Visual Studio Code from Favorites.

Remove from Favorites

Open the Ubuntu Software.

Ubuntu Uninstall VS Code click ubuntu software icon

Click on the Search icon and search for code. Ubuntu Software does not call it Microsoft Visual Studio Code by calls it code instead.

Ubuntu Uninstall VS Code search for code

Select code and click on it once.

Ubuntu Uninstall VS Code click on code

Information about code will appear. Click the Trash icon to uninstall code.

Click uninstall - trash- icon

Then click the Uninstall button that appears.

click uninstall button

Authenticate this by entering the password you use to log into Ubuntu. Then click the Authenticate button or press Enter.

enter password to authenicate

Now, code will uninstall.

VS Code Uninstallling

Now the uninstallation of code is complete. This is good for normal uninstalls.

VS Code is uninstalled

How to Completely Uninstall Visual Studio Code from Ubuntu

Here is how to completely remove Microsoft Visual Studio Code from Ubuntu.

Do the previous steps as shown above.

Terminal Commands

Open Terminal.

open terminal

Enter the following command into Terminal and press the Enter key.

sudo rm -r ~/.config/Code
Delete .config Code folder

Enter the following command into Terminal and press the Enter key.

sudo rm -r ~/.vscode
Delete .vscode folder

Quit Terminal.

VS Code Uninstall Quit Terminal

Microsoft Visual Studio Code is not completely uninstalled from Ubuntu 22.04.

Scroll to Top