-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/civo/cli/blob/master/cmd/kubernetes_remove.go #19
Comments
Hi @manuelh2410 , this is intentionally so. We've made the CLI fairly scriptable, but don't want to risk someone accidentally deleting a cluster they didn't intend. You could do this like this: for i in `civo k3s ls -o custom -f ID | grep something`; do civo k3s rm $i; done |
Good Day, Thanks for getting back to me . How does your suggested command string deal with the confirmation request required by the API prior to deleting the cluster? for i in also wouldnt the command need to be civo k3s ls -o custom -f Name ? instead of ID I tested this and the API only returned 20 results out of 50 clusters . root@Pegasus:/home/manuelh# civo k3s ls -o custom -f Name |
Add the |
Hi Andy , for i in But it is only shown to delete 20 clusters at a time Error: sorry we found more than one Kubernetes cluster with that name in your account |
Because you're doing it by name and there are often more than one cluster that matches that name (it doesn't do a full match, but a partial match). That's why I used ID. I wrote incorrectly in my comment though "so I'd go with name". Use the ID, it's always unique. |
"civo kubernetes remove CLUSTER_NAME", doesnt seem to support wild card characters .
example "civo kubernetes remove ."
the CLI seems to be missing a "Bulk Delete" feature
The text was updated successfully, but these errors were encountered: