Uninstallation Overview
Uninstalling Gemini CLI involves three main steps:- Remove the Gemini CLI package
- Delete the desktop shortcut (if created)
- Optionally uninstall Node.js
Uninstallation Steps
Uninstall Gemini CLI Package
Open PowerShell or Command Prompt and run:This removes the Gemini CLI package from your system’s global npm packages.You should see a message indicating the command was not found.
Verify Removal
Confirm Gemini CLI has been removed:This command only removes the Gemini CLI package. Node.js and npm remain installed.
Uninstall Node.js (Optional)
If you no longer need Node.js for other applications, you can uninstall it:
Option A: Using winget
Option B: Using Windows Settings
- Open Settings → Apps → Installed apps
- Search for “Node.js”
- Click the three dots menu
- Select Uninstall
- Confirm the uninstallation
Option C: Using Control Panel
- Open Control Panel
- Navigate to Programs → Programs and Features
- Find Node.js in the list
- Right-click and select Uninstall
- Follow the uninstallation wizard
Clean Up Remaining Files
After uninstalling Node.js, some files may remain. You can manually delete these directories:These cleanup commands are optional. Windows typically removes most Node.js files during uninstallation.
Verify Complete Removal
After completing the uninstallation steps, verify everything has been removed:Cleaning Environment Variables
If you uninstalled Node.js but still see references in your PATH:- Open System Properties → Environment Variables
- Under User variables and System variables, select Path
- Click Edit
- Remove any entries containing:
nodejsnpmAppData\Roaming\npm
- Click OK to save
- Restart any open terminal windows
Reinstalling Gemini CLI
If you want to reinstall Gemini CLI later:If Node.js is Still Installed
Simply run:If Node.js Was Removed
Follow the complete Manual Installation Guide or download from the GitHub releases page.Troubleshooting Uninstallation
npm uninstall command not found
If npm is not available, Node.js may already be uninstalled. Skip to removing the desktop shortcut and cleaning up remaining files.Permission denied errors
Run your terminal as Administrator:- Right-click PowerShell or Command Prompt
- Select Run as administrator
- Run the uninstall commands again
Files remain after uninstallation
Some configuration files may remain in your user directory:Partial Uninstallation
If you want to keep Node.js but remove only Gemini CLI:- Complete Step 1 (Uninstall Gemini CLI Package)
- Complete Step 2 (Remove Desktop Shortcut)
- Skip Steps 3-4 (Keep npm cache and Node.js)
Data Backup Before Uninstallation
If you have custom configurations or data you want to preserve:Backup Configuration
Check for Gemini CLI configuration files:Copy any important files to a backup location before uninstalling.
Need Help?
If you encounter issues during uninstallation:- Check the Troubleshooting Guide
- Visit the GitHub Issues
- Review the Node.js Installation troubleshooting page
After complete uninstallation, you can safely reinstall Gemini CLI at any time using the automated installer or manual installation method.