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:
- (trivial)
lxc network listwill list all networks and you don’t want to delete them all. - (less trivial) even after all containers/images are gone
lxdbr0network is still owned bydefaultso anlxc network detach-profile lxdbr0 defaultis needed beforelxc network delete lxdbr0. - (nitpick) you forgot backticks around
echo '{"config": {}}' | lxc profile edit defaultso the quoting marks got converted making the line fail if used by copy&paste.
Many thanks for your explanation.