Skip to content

Glob support for rustup toolchain remove #2530

Open

Description

@est31

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-*.

Activity

  1. est31 commented on Oct 20, 2020

    @est31
    MemberAuthor

    Workaround: rustup toolchain list | rg ^nightly-20 | xargs rustup toolchain uninstall

  2. kinnison commented on Oct 27, 2020

    @kinnison
    Contributor

    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 rustup I'd not object if someone wanted to work on it.

  3. camelid commented on Oct 27, 2020

    @camelid
    Member

    @rustbot claim

  4. rustbot commented on Oct 27, 2020

    @rustbot
    Collaborator

    Error: This repository is not enabled to use triagebot.
    Add a triagebot.toml in the root of the master branch to enable it.

    Please let @rust-lang/release know if you're having trouble with this bot.

  5. kinnison commented on Oct 27, 2020

    @kinnison
    Contributor

    @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

  6. jyn514 commented on Nov 3, 2020

    @jyn514
    Member

    Personally, I'd rather do this through shell scripting than rustup itself. I don't see much benefit of adding it to rustup directly.

  7. added this to the 1.29.0 milestone on Jul 10, 2024
  8. changed the title [-]Regex support for rustup toolchain remove[/-] [+]Glob support for rustup toolchain remove[/+] on Jul 11, 2024
  9. rami3l commented on Nov 25, 2024

    @rami3l
    Member
  10. added 5 commits that reference this issue on Jan 14, 2026
    bcd8a9c
    31538ad
    3a75d4e
    c231253
    76a7f83
  11. added a commit that references this issue on Jan 15, 2026
    176c2a5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions