I noticed that wifi-connect no longer has a --clear flag to delete all network credentials. Instead PR https://github.com/balena-io/wifi-connect/pull/157 removed this flag and a comment on that PR discussion suggested using nmcli. So I installed the network-manager (Raspberry Pi) and this is what I get from a single container app when I try to use the nmcli to access the current status:
root@bfdd285:/usr/src/app# nmcli g (process:1761): libnm-glib-WARNING **: (nm-object.c:157):constructor: code should not be reached (process:1761): GLib-GObject-CRITICAL **: object NMClient 0x1c7b098 finalized while still in-construction (process:1761): GLib-GObject-CRITICAL **: Custom constructor for class NMClient returned NULL (which is invalid). Please use GInitable instead. (process:1761): nmcli-CRITICAL **: Error: Could not create NMClient object. root@bfdd285:/usr/src/app#
So, how do we do this through nmcli?