Is it safe to delete Rust toolchains?

~/.rustup/toolchains · Check first

What it is

Every Rust toolchain installed through rustup (stable, beta, nightly, pinned versions).

Can you delete it?

Sometimes, check what is inside first. Old or pinned toolchains you no longer use can go; projects pinned to a version need it.

How to clean it safely

  1. Run: rustup toolchain list
  2. Run: rustup toolchain uninstall <name> for ones you no longer use.

How big is it on your Mac?

This read-only command prints its size and changes nothing:

 Terminal
du -sh ~/".rustup/toolchains" 2>/dev/null

Step-by-step guide: Rust target folders →

Questions

Is it safe to delete ~/.rustup/toolchains?

Sometimes, check what is inside first. Old or pinned toolchains you no longer use can go; projects pinned to a version need it.

Let the raccoon do it, safely

Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free to download, no account, no ads.

Download for Mac