Created
February 6, 2025 16:09
-
-
Save farshidtz/52ccf18d6470c1e6b0dd06b30e7968ad to your computer and use it in GitHub Desktop.
Remove snapcraft-created LXD containers
This file contains hidden or 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/bash | |
for c in $(lxc list --project=snapcraft | awk '{print $2}' | grep ^snapcraft- | grep -v snapcraft-dev); do | |
echo "Force delete $c" | |
lxc delete --project=snapcraft $c --force | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment