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?
to your account
For local testing, I find myself wanting to just completely "wipe" any data etcd from the CLI with etcdctl :
https://kubernetes.io/docs/reference/setup-tools/kubeadm/kubeadm-reset/ proposes this, but NOK:
$ etcdctl del "" --prefix
No help topic for 'del'
$ etcdctl rm -r ""
$ Error: 107: Root is read only (/) 
Currently I do it like this, but this of course feels more like a workaround:
$ sudo systemctl stop etcd
$ sudo rm -rf /var/lib/etcd/default.etcd
$ sudo systemctl start etcd
PS: Old and close #2385 had something similar, it seems.
The text was updated successfully, but these errors were encountered:
@vorburger does ETCDCTL_API=3 etcdctl del "" --from-key=true do the trick?
ETCDCTL_API=3 etcdctl del "" --from-key=true
Sorry, something went wrong.
@hexfusion oh. Yeah - that seems to work great; thanks!
replace 'm -rf /var/lib/etcd/default.etcd' by 'etcdctl del' in README
Thank You etcd-io/etcd#10101
ETCDCTL_API=3 etcdctl del "*" --from-key=tru
No branches or pull requests