Skip to content

Instantly share code, notes, and snippets.

@debedb
Created August 23, 2017 20:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save debedb/2e02f07f57286d3a641561592b11ee0c to your computer and use it in GitHub Desktop.
Save debedb/2e02f07f57286d3a641561592b11ee0c to your computer and use it in GitHub Desktop.
Remove everything from etcd
#!/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