perform_uninstall_extra(
extra: str,
*,
progress: UpgradeProgressCallback | None = None,
log_path: Path| Name | Type | Description |
|---|---|---|
extra* | str | |
progress | UpgradeProgressCallback | None | Default: None |
log_path | Path | None | Default: None |
Remove extra by rebuilding the current uv-managed tool environment.
The install lock covers both receipt inspection and uv execution, so a
concurrent upgrade, install, or removal cannot rebuild from a receipt this
call is midway through replacing. It fail-opens when the lock file is unusable
(see update_install_lock), so exclusion is best-effort.
Extra name to remove. Must satisfy is_valid_extra_name; invalid
names are rejected without invoking uv. This mirrors the install
performer's defense in depth — the name reaches a shell command, and
the validation must not be refactored away.
Optional callback invoked for each output line.
Optional path to persist command output.