forget method is used to make a device forget about a given WiFi network. This will remove the network from the list of known networks and will remove all the configuration settings related to that network.
If the device was connected to that network, it is disconnected from it.
var request = navigator.mozWifiManager.forget(network);
It returns a
DOMRequest to handle the success or error of the operation.
Not part of any specification.
© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.