cargo

cargo uninstall

Remove an installed package from the specified installation root. Use the same root as installation and verify the package name. It does not remove a library dependency from Cargo.toml. Example format: shell. Run only in a disposable copy of v17/fixtures/projects/distribution-demo. Expected result (not executed): After the preceding lab installation, the installed executable is removed from that root. Common mistake: Omitting the root and removing a tool from your normal Cargo installation.

Formal Syntax & Structure

rust syntaxrust
cargo uninstall [OPTIONS] PACKAGE

Working Example

Example Snippetrust
cargo uninstall --root ./lab-install bytemind-distribution-demo
Rust Reference