VS Code Terminal and CLI/Uninstall an extension from the CLI

Remove an installed extension by identifier.

Section: CLI Advanced

Uninstall an extension from the CLI

bash
bash
code --uninstall-extension esbenp.prettier-vscode

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing CLI Advanced
Install an extension from the CLI
Add an extension by identifier.
OpenIn sheetbashsame section
List installed extensions
Print extension identifiers to stdout.
OpenIn sheetbashsame section
Export extension list
Create a portable list of installed extensions.
OpenIn sheetbashsame section
Start with extensions disabled
Helpful for troubleshooting extension issues.
OpenIn sheetbash2 tag match
Show VS Code CLI help
Display usage and options.
OpenIn sheetbash1 tag match
Open in a new window
Launch a folder in a separate VS Code window.
OpenIn sheetbash1 tag match