WifiManager.forget()

This API is available on Firefox OS for internal applications only.

Summary

The 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.

Syntax

JavaScript
var request = navigator.mozWifiManager.forget(network);

Parameters

network
A network object as the ones provided by the getNetworks or getKnownNetworks methods.

Returns

It returns a DOMRequest to handle the success or error of the operation.

Specification

Not part of any specification.

See also

License

© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/wifimanager/forget

API B2G Firefox OS Method Non-standard Reference WiFi