Skip to content

Instantly share code, notes, and snippets.

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 adam-stokes/433899ec9c068d3fb802b293d8a440ad to your computer and use it in GitHub Desktop.
Save adam-stokes/433899ec9c068d3fb802b293d8a440ad to your computer and use it in GitHub Desktop.
for row in $(echo "$(sudo lxc list --format json)" | jq -r '.[] | @base64'); do
_jq() {
echo ${row} | base64 --decode | jq -r ${1}
}
sudo lxc delete --force $(_jq '.name')
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment