To completely remove Cloud SDK, follow these instructions:
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)'
Delete both these directories.
Additionally, remove lines sourcing
completion.bash.inc
andpaths.bash.inc
in your.bashrc
or equivalent shell init file, if you added them during installation.