gcloud topic uninstall
Stay organized with collections
Save and categorize content based on your preferences.
- NAME
-
- gcloud topic uninstall - supplementary help for uninstalling Google Cloud CLI
- DESCRIPTION
- Uninstalling Google Cloud CLI
-
Note: For installations completed using an OS package (such as
apt-get,yum, etc.), uninstall Google Cloud CLI via the OS package manager.Note: For Windows installations, execute the uninstaller.exe found under your Google Cloud CLI directory.
To completely remove Google Cloud CLI, follow these instructions:
- Locate your installation directory by running:
gcloudinfo --format="value(installation.sdk_root)"-
Locate your user config directory (typically
~/.config/gcloudon MacOS and Linux) by running:
gcloudinfo --format="value(config.paths.global_config_dir)"- Delete both these directories.
-
Additionally, remove lines sourcing
completion.bash.incandpaths.bash.incin your.bashrcor equivalent shell init file, if you added them during installation.
-
Review the contents of the
.botofile in your home directory and remove the sections '[GoogleCompute]' and '[GSUtil]'. In addition, review the sections '[OAuth2]' and '[Credentials]' for settings that are no longer needed.
-
Some systems may have
Cachedirectories such as~/Library/Caches/on Mac OS X. Find and delete these directories for your system:
find~/Library/Caches/-typed-name"google-cloud-sdk"|xargsrm-r - NOTES
-
These variants are also available:
gcloudalphatopicuninstallgcloudbetatopicuninstall