Skip to main content

uninstall

Function uninstall 

Source
pub fn uninstall(
    dir: &Path,
    lock_path: &Path,
    handle: &str,
    target: &str,
    force: bool,
) -> Result<UninstallSummary>
Expand description

Remove an installed artifact’s files and its lockfile entry.

Offline: agr.lock records everything needed, so removal never contacts the registry — an artifact stays uninstallable after it is unpublished.

Only the paths the lockfile recorded are touched, never a glob of the install directory. Without force the install must still be byte-identical to what was written, so local edits are never silently discarded.