tiup
tiup copied to clipboard
Support uninstall all components of a given version
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: