[ Web Proxy ]
URL:
Viewing: https://cloud.google.com/sdk/docs/uninstall-cloud-sdk [Back]  [Original]

Uninstalling the Google Cloud CLI  |  Google Cloud SDK  |  Google Cloud Documentation Skip to main content
Google Cloud Documentation [Google Cloud Documentation]
Send feedback

Uninstalling the Google Cloud CLI Stay organized with collections Save and categorize content based on your preferences.

For installations completed using an OS package (such as apt-get or yum), uninstall gcloud CLI using the OS package manager.

For Windows installations, execute the uninstaller.exe file in your gcloud CLI directory.

To remove the gcloud CLI, follow these instructions:

  1. Locate your installation directory by running:

     gcloud info --format='value(installation.sdk_root)'
    

    Locate your user config directory (typically ~/.config/gcloud on MacOS and Linux) by running:

     gcloud info --format='value(config.paths.global_config_dir)'
    
  2. Delete both of these directories.

  3. Additionally, remove lines sourcing completion.bash.inc and path.bash.inc in your .bashrc or equivalent shell init file, if you added them during installation.

  4. Review the contents of the .boto file 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.

  5. Some systems may have Cache directories such as ~/Library/Caches/ on Mac OS X. Find and delete these directories for your system:

     find ~/Library/Caches/ -type d -name "google-cloud-sdk" | xargs -I {} rm -r "{}"
    
Send feedback

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-08-18 UTC.

Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-18 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page