Avatar ·

How to completely remove Rust installed via rustup?

Hi everyone! I'm a beginner in Rust and installed it via the official `rustup` tool. Now I need to completely remove Rust from my system (Windows 10), but I can't find a simple and clear instruction. The problem is that I don't just want to remove the `rustc` compiler, but also all related components: the `rustup` utility itself, the `cargo` package manager, the standard library, downloaded targets (e.g., `x86_64-pc-windows-msvc`), and all installed crates. I tried manually deleting the `.rustup` and `.cargo` folders, but after that, I still had entries in the PATH and Windows registry, and when I tried to reinstall Rust, conflicts occurred. Can you suggest the correct way to completely uninstall? I tried running `rustup self uninstall` in the command line, but got an error: ``` error: cou