Trying to make disconnect for active connection:
iw dev wlan0 disconnect and:
systemctl stop wpa_supplicant@wlan0.service rm -f /opt/some_app/wpa_supplicant.conf There are no error messages, but if you look at using
iw dev wlan0 info information about the interface - ssid has not disappeared anywhere. Moreover, if you use link instead of info , then the output will be the data from the same network, instead of the expected connection . Also, the OS will complain that there is no such file / directory in the system (code: -2).
Tell me what you can do.