Uninstalling the CLI
Written by
Updated at November 11, 2025
To fully uninstall the CLI, delete the installation folder, user settings, and environment variables.
Linux/MacOS
Windows
-
Remove the CLI:
rm -rf <installation_folder_path>By default, the the installation folder path is
~/yandex-cloud.rm -rf ~/yandex-cloud -
Remove your CLI user settings:
rm -rf ~/.config/yandex-cloud -
Delete lines referencing
yandex-cloudfrom the shell configuration file (e.g.,~/.zshrc,~/.bashrc, or~/.bash_profile):if [ -f "$HOME/yandex-cloud/path.bash.inc" ]; then source "$HOME/yandex-cloud/path.bash.inc"; fi if [ -f "$HOME/yandex-cloud/completion.zsh.inc" ]; then source "$HOME/yandex-cloud/completion.zsh.inc"; fi -
Restart the terminal.
-
Uninstall the CLI via the explorer or using this command:
rmdir /S /Q "%USERPROFILE%\yandex-cloud" -
Remove your CLI user settings:
rmdir /S /Q "%USERPROFILE%\.config\yandex-cloud" -
If the CLI was added to your
PATHenvironment variable:- Click Start and type Change system environment variables in the Windows search bar.
- Click Environment variables... at the bottom right.
- In the window that opens, find the
PATHparameter and click Edit. - In the list, select
...\yandex-cloud\bin. - Click Delete.
- Click OK.
-
Restart the terminal.