commands.sh

cargo clean

all

Remove generated artifacts in the `target` directory.

More info →

Options (1)

-r, --releaseboolean

Remove release artifacts (the `target/release` directory)

Example: cargo clean {{[-r|--release]}}

Examples (4)

Remove the entire `target` directory

Remove documentation artifacts (the `target/doc` directory)

Remove release artifacts (the `target/release` directory)

cargo clean [-r|--release]

Remove artifacts in the directory of the given profile (in this case, `target/debug`)

cargo clean --profile dev
made by @shridhargupta | data from tldr-pages