Remove build artifacts for a package or target selection context.
Section: Manifest and metadata checks
Clean one package target directory
bash
bash
cargo clean -p my-cliExplanation
Sometimes stale artifacts or profile mismatches make a local clean rebuild useful.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Manifest and metadata checks