How to remove LXD from my system

For the sake of whoever will come here at a later time…
actually the step "network delete <whatever came from list>" is not going to work for (at least) two reasons:

  1. (trivial) lxc network list will list all networks and you don’t want to delete them all.
  2. (less trivial) even after all containers/images are gone lxdbr0 network is still owned by default so an lxc network detach-profile lxdbr0 default is needed before lxc network delete lxdbr0.
  3. (nitpick) you forgot backticks around echo '{"config": {}}' | lxc profile edit default so the quoting marks got converted making the line fail if used by copy&paste.

Many thanks for your explanation.

3 Likes