The WiFi-related configurations are stored in /etc/wpa_supplicant/wpa_supplicant.conf file. For example, if WPS (WiFi protected setup) is succeeded by using wpa_cli command, the configuration information, such as SSID, passphrase, etc. will be stored inside it.
Now, what I want to do is to clear all the wifi configuration information inside /etc/wpa_supplicant/wpa_supplicant.conf. And what I am considering now is:
1.delete all the content in /etc/wpa_supplicant/wpa_supplicant.conf file 2.write the original information into it 3.reboot the system
But, is there any other way to reset the configuration file?