5 cargo-uninstall --- Remove a Rust binary
9 `cargo uninstall` [_options_] [_spec_...]
13 This command removes a package installed with {{man "cargo-install" 1}}. The _spec_
14 argument is a package ID specification of the package to remove (see
15 {{man "cargo-pkgid" 1}}).
17 By default all binaries are removed for a crate but the `--bin` and
18 `--example` flags can be used to only remove particular binaries.
20 {{> description-install-root }}
28 {{#option "`-p`" "`--package` _spec_..." }}
32 {{#option "`--bin` _name_..." }}
33 Only uninstall the binary _name_.
36 {{#option "`--root` _dir_" }}
37 Directory to uninstall packages from.
46 {{> options-display }}
50 {{> section-options-common }}
52 {{> section-environment }}
54 {{> section-exit-status }}
58 1. Uninstall a previously installed package.
60 cargo uninstall ripgrep
63 {{man "cargo" 1}}, {{man "cargo-install" 1}}