Created
August 23, 2017 20:21
-
-
Save debedb/2e02f07f57286d3a641561592b11ee0c to your computer and use it in GitHub Desktop.
Remove everything from etcd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/csh | |
foreach x (`etcdctl ls --recursive | sort -r | uniq`) | |
etcdctl rmdir $x | |
end | |
etcdctl ls --recursive / |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment