How do I cleanly remove these older tools. Without hacking around with paths? For simplicity, assuming my goal is to keep only the latest gcloud tools - and not the previous.
Can some gcloud command do "cleanup" automatically?
If not gcloud command, is there a brew command that can do it?
Note: This is not docker specific. This annoying warning comes for every gcloud update.
Output
$============================================================# $= Creating update staging area =# $============================================================# $= Uninstalling: Cloud SDK Core Libraries =# $============================================================# $= Installing: Cloud SDK Core Libraries =# $============================================================# $= Creating backup and activating new installation =# $============================================================#
Performing post processing steps... ...........................done.
Update done!
To revert your SDK to the previously installed version, you may run:
$ gcloud components update --version 229.0.0WARNING: There are older versions of Google Cloud Platform tools on your system PATH. Please remove the following to avoid accidentally invoking these old tools:
/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/bin/bq /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/bin/gcloud /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/bin/git-credential-gcloud.sh /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/bin/docker-credential-gcloud /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/bin/gsutil