HiveBrain v1.2.0
Get Started
← Back to all entries
snippetrustCritical

How to remove Rust compiler toolchains with Rustup?

Submitted by: @import:stackoverflow-api··
0
Viewed 0 times
withhowrustupremovetoolchainscompilerrust

Problem

The Rustup documentation shows how to install Rust nightly, but not how to remove it.

While the docs do show how to uninstall rustup entirely, I'd like to keep the stable branch.

How can I uninstall Rust nightly?

Note that I attempted to do the opposite of:
rustup install nightly ...

  • rustup uninstall nightly



  • rustup remove nightly



  • rustup delete nightly



... to no avail.

Even though I read the documentation it wasn't clear that nightly was a toolchain, a channel... or something else.

Solution

The command you're looking for is:

rustup toolchain remove nightly


remove and uninstall both work for this.

For more details see:

rustup help toolchain

Code Snippets

rustup toolchain remove nightly
rustup help toolchain

Context

Stack Overflow Q#42322879, score: 107

Revisions (0)

No revisions yet.