File: //snap/google-cloud-cli/current/help/man/man1/gcloud_topic_uninstall.1
.TH "GCLOUD_TOPIC_UNINSTALL" 1
.SH "NAME"
.HP
gcloud topic uninstall \- supplementary help for uninstalling Google Cloud CLI
.SH "DESCRIPTION"
.SH "Uninstalling Google Cloud CLI"
Note: For installations completed using an OS package (such as \f5apt\-get\fR,
\f5yum\fR, 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:
.RS 2m
.IP "\(bu" 2m
Locate your installation directory by running:
.RE
.sp
.RS 2m
$ gcloud info \-\-format="value(installation.sdk_root)"
.RE
.RS 2m
.IP "\(bu" 2m
Locate your user config directory (typically \f5~/.config/gcloud\fR on MacOS and
Linux) by running:
.RE
.sp
.RS 2m
$ gcloud info \-\-format="value(config.paths.global_config_dir)"
.RE
.RS 2m
.IP "\(bu" 2m
Delete both these directories.
.RE
.sp
.RS 2m
.IP "\(bu" 2m
Additionally, remove lines sourcing \f5completion.bash.inc\fR and
\f5paths.bash.inc\fR in your \f5.bashrc\fR or equivalent shell init file, if you
added them during installation.
.RE
.sp
.RS 2m
.IP "\(bu" 2m
Review the contents of the \f5.boto\fR 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.
.RE
.sp
.RS 2m
.IP "\(bu" 2m
Some systems may have \f5Cache\fR directories such as \f5~/Library/Caches/\fR on
Mac OS X. Find and delete these directories for your system:
.RE
.sp
.RS 2m
$ find ~/Library/Caches/ \-type d \-name "google\-cloud\-sdk" | xargs \e
rm \-r
.RE
.SH "NOTES"
These variants are also available:
.RS 2m
$ gcloud alpha topic uninstall
.RE
.RS 2m
$ gcloud beta topic uninstall
.RE