diff --git a/lib/lxc.sh b/lib/lxc.sh index af9bf9a..2bc9165 100644 --- a/lib/lxc.sh +++ b/lib/lxc.sh @@ -131,6 +131,8 @@ LXC_RESET () { LXC_STOP $LXC_NAME + swapoff "$(lxc storage get default source)/containers/$LXC_NAME/rootfs/swap" 2>/dev/null + lxc delete $LXC_NAME --force 2>/dev/null }