Uninstall Rust Installed via Rustup
Nilesh Katuwal Apr 21, 2022
This article is about uninstalling Rust which was installed via
Uninstall Rust in Linux
Use the following codes to uninstall
cargo in the Linux operating system.
Type the following command in the Linux terminal.
rustup self uninstall
Uninstall Rust in Windows
To uninstall Rust in the Windows operating system, we can run the Rustup installer and select uninstall.
Go to the terminal in Windows and get into the directory where you have installed Rust. Then to see the Rust you have installed, type
rustupand click Enter.
Now check the availability of
cargothrough the example below.
Now, to uninstall Rustup, we must enter the following command.
C:\Users\DELL>rustup self uninstall
Now, for continuing, you have to type
yand click Enter. It may take a while to uninstall.
Now Rust will be uninstalled.