mirror of
https://github.com/rancher/k3k.git
synced 2026-08-20 04:46:19 +00:00
* Add cluster deletion and completion enhancements - Implemented `--all` flag for deleting all clusters in a namespace. - Updated argument parsing to allow for maximum one cluster name. - Added completion functions for cluster names with namespace filtering. - Enhanced tests for cluster argument resolution and completion functions. * fix docs * Add log message for empty cluster deletion in specified namespace * Refactor context handling in command functions to use `cmd.Context()`
35 lines
707 B
Markdown
35 lines
707 B
Markdown
## k3kcli cluster delete
|
|
|
|
Delete an existing cluster.
|
|
|
|
```
|
|
k3kcli cluster delete [flags]
|
|
```
|
|
|
|
### Examples
|
|
|
|
```
|
|
k3kcli cluster delete [command options] NAME
|
|
```
|
|
|
|
### Options
|
|
|
|
```
|
|
-A, --all delete all the clusters in the namespace
|
|
-h, --help help for delete
|
|
--keep-data keeps persistence volumes created for the cluster after deletion
|
|
-n, --namespace string namespace of the k3k cluster
|
|
```
|
|
|
|
### Options inherited from parent commands
|
|
|
|
```
|
|
--debug Turn on debug logs
|
|
--kubeconfig string kubeconfig path ($HOME/.kube/config or $KUBECONFIG if set)
|
|
```
|
|
|
|
### SEE ALSO
|
|
|
|
* [k3kcli cluster](k3kcli_cluster.md) - K3k cluster command.
|
|
|