Skip to content
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

etcdctl complete delete wipe #10101

Closed
vorburger opened this issue Sep 18, 2018 · 2 comments

Comments

@vorburger
Copy link
Member

@vorburger vorburger commented Sep 18, 2018

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 (/) [3]

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.

@hexfusion

This comment has been minimized.

Copy link
Member

@hexfusion hexfusion commented Sep 18, 2018

@vorburger does ETCDCTL_API=3 etcdctl del "" --from-key=true do the trick?

@vorburger

This comment has been minimized.

Copy link
Member Author

@vorburger vorburger commented Sep 18, 2018

@hexfusion oh. Yeah - that seems to work great; thanks!

@vorburger vorburger closed this Sep 18, 2018
vorburger added a commit to vorburger/opendaylight-etcd that referenced this issue Sep 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.