uninstall rust with rustup code example
Example 1: how to uninstall rust
rustup self uninstall
Example 2: how to uninstall rust
curl https://sh.rustup.rs -sSf | sh
rustup self uninstall
curl https://sh.rustup.rs -sSf | sh