← All tools

clovu/cargo-clean-global

Popularity 65 Updated Development & Build

A safe Cargo plugin that cleans target directories across local Cargo projects.

githubauto-collected

Installation

A directly usable install command is not verified yet. Check the project documentation or releases.

cargo-clean-global

cargo-clean-global is a Cargo plugin that finds Cargo projects on your machine and cleans their build output directories in one command.

It is designed as the practical equivalent of a global Cargo clean operation. Because Cargo plugins cannot extend the built-in cargo clean command with a --global flag, this project is used as:

cargo clean-global

Direct execution via cargo-clean-global is intentionally rejected. Use the Cargo subcommand form only.

Installation

cargo install cargo-clean-global

Install from a local checkout during development:

cargo install --path .

Usage

Clean all discovered Cargo project build directories:

cargo clean-global

Skip the confirmation prompt and clean immediately:

cargo clean-global --yes

Preview what would be cleaned without deleting anything:

cargo clean-global --dry-run

Restrict scanning to a specific directory:

cargo clean-global --root ~/projects