How to uninstall rust?

how is that done? is there any script for that?

1 Like

If you are on windows, just use the installer. On OSX and linux you can use the same script you used for installing, see http://doc.rust-lang.org/book/installing-rust.html

1 Like

Maybe it would be best if you created one thread with all of your questions. Also these kinds of questions seem to fit IRC better, if you dont want to wait a long time for answers.

1 Like

IRC is blocked from work. I don’t mind waiting.

i figured separating the question would allow separate discussions (if
necessary).

currently

curl -L https://static.rust-lang.org/rustup.sh | sudo sh

results in bad checksum.

so i get the official binary download and run its installation script again.
But i did not t see the installation script removing anything and
rustc still worked.

Passing --uninstall to either rustup.sh or install.sh will uninstall Rust.

There is an issue open to make this easier still (and to work with the OS X .pkg file) by not requiring the installer again. So after the next rust-installer upgrade uninstall will be just /usr/local/lib/rustlib/uninstall.sh, though I’m considering whether we want to also install a script to /usr/local/bin called e.g. rust-uninstall.

1 Like

For later reference, to uninstall a software installed with an .MSI (Windows Installer) package via command prompt:

If you specify the GUID of the installation, you don’t need the original package.

rustup self uninstall
14 Likes

This worked fine on Windows OS.

It works

Microsoft Windows [Version 10.0.19041.329]
(c) 2020 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>rustup self uninstall

Thanks for hacking in Rust!

This will uninstall all Rust toolchains and data, and remove
%USERPROFILE%.cargo/bin from your PATH environment variable.

Continue? (y/N) y

info: removing rustup home
info: removing cargo home
info: removing rustup binaries
info: rustup is uninstalled

Thanks!

1 Like