Newer Version Available
Uninstall Salesforce CLI or Plug-ins
macOS or Linux
Enter all these commands in a terminal:
1sudo rm -rf /usr/local/sfdx
2sudo rm -rf /usr/local/lib/sfdx
3sudo rm -rf /usr/local/bin/sfdx
4sudo rm -rf ~/.local/share/sfdx ~/.config/sfdx ~/.cache/sfdx
5sudo rm -rf ~/Library/Caches/sfdx
6sudo rm -rf /usr/local/sf
7sudo rm -rf /usr/local/bin/sfWindows
- Select .
- Select SFDX CLI, and click Uninstall.
- Inside your home directory, delete these two directories:
- .config\sfdx
- .config\sf
If the CLI is still installed, delete the %LOCALAPPDATA%\sfdx directory in Program Files.
npm
If you installed Salesforce CLI with npm, uninstall it with this command:
1npm uninstall sfdx-cli --globalUninstall a Plug-In
Use the plugins:uninstall command to uninstall a plug-in you’ve previously installed.
Let’s say, for example, that you previously installed a specific version of the auth plug-in, but now you want to go back to the latest version. Uninstalling the plug-in takes you back to the core version that’s bundled with the CLI. Enter this command from a terminal or Windows command prompt:
1sfdx plugins:uninstall authIf the plug-in is standalone and not bundled with the CLI, then uninstalling it removes it from the CLI.