cargo clean
Remove artifacts that cargo has generated in the past
Options
Name | Description |
---|---|
-p, --package <package...> |
|
--manifest-path <manifest-path> | Path to Cargo.toml |
--target <target> |
|
--target-dir <target-dir> | Directory for all generated artifacts |
--profile <profile> | Clean artifacts of the specified profile |
--color <color> | Coloring: auto, always, never |
--config <config> |
|
-Z <unstable-features> |
|
-q, --quiet | Do not print cargo log messages |
-r, --release | Whether or not to clean release artifacts |
--doc | Whether or not to clean just the documentation directory |
-h, --help | Print help information |
-v, --verbose |
|
--frozen | Require Cargo.lock and cache are up to date |
--locked | Require Cargo.lock is up to date |
--offline | Run without accessing the network |