# rust toolchain cleaner
[](https://crates.io/crates/toolchain-clean)
[](https://unlicense.org)
[](https://blog.rust-lang.org/2021/11/01/Rust-1.56.1.html)
[](https://doc.rust-lang.org/nomicon/meet-safe-and-unsafe.html)
[](https://deps.rs/repo/gitlab/hsn10/toolchain-clean)
[](https://crates.io/crates/toolchain-clean/versions)
[](https://github.com/XAMPPRocky/tokei)
## About
This small program deletes all installed rust toolchains except channels:
1. beta
1. stable
1. nightly
1. unstable
## Requirements
1. [rustup](https://rustup.rs) rustup toolchain installer.
## Arguments
1. -h print help message and exit
1. -v print version number and exit
1. -l list installed rust toolchains
1. -n do not delete any installed rust toolchains
Default action is to delete installed old rust toolchains.
## License
This is free and unencumbered software released into the public domain.
This code can be used under terms of [CC0](https://creativecommons.org/publicdomain/zero/1.0/) or
the [Unlicense](https://unlicense.org).
