Google Cloud CLI 제거

Windows 설치의 경우 gcloud CLI 디렉터리에서 uninstaller.exe 파일을 실행합니다.

gcloud CLI를 삭제하려면 다음 안내를 따르세요.

  1. 다음을 실행하여 설치 디렉터리를 찾습니다.

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

    다음을 실행하여 사용자 구성 디렉터리(MacOS 및 Linux에서는 일반적으로 ~/.config/gcloud)를 찾습니다.

     gcloud info --format='value(config.paths.global_config_dir)'
    
  2. 두 디렉터리를 모두 삭제합니다.

  3. 또한 설치 중에 추가한 경우 .bashrc 또는 이에 해당하는 셸 초기화 파일에서 completion.bash.incpath.bash.inc가 있는 줄을 삭제합니다.

  4. 홈 디렉터리에서 .boto 파일의 내용을 검토하고 [GoogleCompute][GSUtil] 섹션을 삭제합니다. 또한 더 이상 필요하지 않은 설정에 대해서는 [OAuth2][Credentials] 섹션을 검토하세요.

  5. 일부 시스템에는 Mac OS X의 ~/Library/Caches/와 같은 Cache 디렉터리가 있을 수 있습니다. 시스템의 다음 디렉터리를 찾아 삭제합니다.

     find ~/Library/Caches/ -type d -name "google-cloud-sdk" | xargs rm -r