tiup icon indicating copy to clipboard operation
tiup copied to clipboard

Support uninstall all components of a given version

Open kennytm opened this issue 9 months ago • 0 comments

Feature Request

Is your feature request related to a problem? Please describe:

When using tiup playground v8.5.0 it will install multiple components of the given version. But to clean up afterwards each component can only be deleted by listing all of them manually.

tiup uninstall tidb:v8.4.0 pd:v8.4.0 tikv:v8.4.0 br:v8.4.0 cdc:v8.4.0 ...

it is hard to know if any component is missed.

Describe the feature you'd like:

Add an option to uninstall all components matching a version.

tiup uninstall --all-with-version v8.4.0
# alternative syntax
tiup uninstall '*:v8.4.0'

Why the featue is needed:

Simplify removal of outdated/unused component versions, while keeping the active versions intact.

Describe alternatives you've considered:

Teachability, Documentation, Adoption, Migration Strategy:

kennytm avatar Mar 07 '25 09:03 kennytm