You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have 63 toolchains, culminating in 40GB of hard drive use. I'd love to remove all nightlies, but I have to add the nightlies one by one. It would be great if one could specify regexes like rustup toolchain remove nightly-*.
@camelid We don't use a lot of the integration bots on this repo, so just saying in a comment you want to do this is enough. We're not a massively popular repo for contributions :D
Activity
est31 commentedon Oct 20, 2020
Workaround:
rustup toolchain list | rg ^nightly-20 | xargs rustup toolchain uninstallkinnison commentedon Oct 27, 2020
Pattern based support for removing toolchains would be a fun enhancement though as you say you can script it instead.
While I don't feel this needs to be in
rustupI'd not object if someone wanted to work on it.camelid commentedon Oct 27, 2020
@rustbot claim
rustbot commentedon Oct 27, 2020
Error: This repository is not enabled to use triagebot.
Add a
triagebot.tomlin the root of the master branch to enable it.Please let
@rust-lang/releaseknow if you're having trouble with this bot.kinnison commentedon Oct 27, 2020
@camelid We don't use a lot of the integration bots on this repo, so just saying in a comment you want to do this is enough. We're not a massively popular repo for contributions :D
jyn514 commentedon Nov 3, 2020
Personally, I'd rather do this through shell scripting than rustup itself. I don't see much benefit of adding it to rustup directly.
[-]Regex support for rustup toolchain remove[/-][+]Glob support for rustup toolchain remove[/+]rami3l commentedon Nov 25, 2024
FYI, now it's easier to parse
rustup's output if you want to script the behavior:rustup toolchain listand friends #3519--quiettorustup toolchain listand friends #3862fix: directory removal race condition in toolchain uninstall
fix: directory removal race condition in toolchain uninstall
fix: directory removal race condition in toolchain uninstall
fix: directory removal race condition in toolchain uninstall
fix: directory removal race condition in toolchain uninstall
fix: directory removal race condition in toolchain uninstall