Skip to content

2.25.0.0-b303

@Deepti-yb Deepti-yb tagged this 14 Nov 06:56
Summary:
Adding delete command to releases:
```
Delete a version in YugabyteDB Anywhere

Usage:
  yba yb-db-version delete [flags]

Aliases:
  delete, remove, rm

Examples:
yba yb-db-version delete --version <version>

Flags:
  -v, --version string           [Required] The YugabyteDB version to be deleted.
      --deployment-type string   [Optional] Deployment type of the YugabyteDB version. Allowed values: x86_64, aarch64, kubernetes
  -f, --force                    [Optional] Bypass the prompt for non-interactive usage.
  -h, --help                     help for delete

Global Flags:
  -a, --apiToken string    YugabyteDB Anywhere api token.
      --config string      Config file, defaults to $HOME/.yba-cli.yaml
      --debug              Use debug mode, same as --logLevel debug.
      --disable-color      Disable colors in output. (default false)
  -H, --host string        YugabyteDB Anywhere Host (default "http://localhost:9000")
  -l, --logLevel string    Select the desired log level format. Allowed values: debug, info, warn, error, fatal. (default "info")
  -o, --output string      Select the desired output format. Allowed values: table, json, pretty. (default "table")
      --timeout duration   Wait command timeout, example: 5m, 1h. (default 168h0m0s)
      --wait               Wait until the task is completed, otherwise it will exit immediately. (default true)
```

Test Plan:
```
./yba yb-db-version delete -v 2.25.0.0-b144
? Are you sure you want to delete Release: 2.25.0.0-b144 Yes
The version 2.25.0.0-b144 has been deleted
```

Reviewers: dshubin, sneelakantan

Reviewed By: dshubin

Subscribers: yugaware

Differential Revision: https://phorge.dev.yugabyte.com/D39855
Assets 2
Loading