microsoft / microsoft/winget-cli

Improvements to uninstall (multiple versions)

Open
#2,287 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Command-Uninstall Issue-Feature
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

Description of the new feature / enhancement

I would like to be able to uninstall multiple versions of an application.

Something like:
winget uninstall <packageIdentifier> --all

I would like to be able to keep the latest version of an application when multiple versions are installed.
winget uninstall <packageIdentifier> --keep-latest

This was motivated by:

  • #2260
Proposed technical implementation details

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing winget uninstall command handling and the related issue #2260. Determine how multiple installed versions and the latest version should be selected. Done means supporting the proposed --all and --keep-latest behaviors with appropriate validation and tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.