Unable to delete container

A container was interrupted as it was moved to this host. Now I am unable to delete it.

# lxc delete c1 
Error: Error deleting storage volume: Failed setting subvolume writable "/var/snap/lxd/common
/lxd/storage-pools/Pool-1/containers/c1": Failed to run: btrfs property set -ts /var/snap/lxd/common
/lxd/storage-pools/Pool-1/containers/c1 ro false: ERROR: failed to get flags for /var/snap/lxd/common
/lxd/storage-pools/Pool-1/containers/c1: Invalid argument

How can I delete it?

Maybe try rm -rf /var/snap/lxd/common/mntns/var/snap/lxd/common/storage-pools/Pool-1/containers/c1?

1 Like


It was:

rm -rf /var/snap/lxd/common/mntns/var/snap/lxd/common/lxd/storage-pools/Pool-1/containers/c1
rm -rf /var/snap/lxd/common/lxd/containers/c1/
lxc delete c1