Uninstall Rust Installed via Rustup
This article is about uninstalling Rust which was installed via Rustup.
Uninstall Rust in Linux
Use the following codes to uninstall rust, rustup, and 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.C:\Users\DELL>rustupOutput:
-
Now check the availability of
cargothrough the example below.C:\Users\DELL>cargoOutput:
-
Now, to uninstall Rustup, we must enter the following command.
C:\Users\DELL>rustup self uninstallOutput:

-
Now, for continuing, you have to type
yand click Enter. It may take a while to uninstall.
-
Now Rust will be uninstalled.