bool DeleteWlanProfile(string, string)
Deletes the saved WLAN profile with the specified name on the specified interface.
Security
Trust Level Required: Full Trust
Parameters
Name | Description |
profileName |
string The name of the WLAN profile to delete. This must match the name of one of the items returned by GetWlanProfiles(), and is case-sensitive. |
interfaceName |
string The GUID of the interface to delete the WLAN profile from. This must match the GUID of one of the items returned by GetInterfaces(). |
Return
Returns true if the specified profile is found and deleted from the specified interface. Returns false if the interface is not valid, available, or ready; or if the profile name is not found on the interface.
Remarks
This function is synchronous, and will block until the call is completed.
Examples
// delete the profile named 'mywifi' from the first interface
var interfaces = KioWiFi.GetInterfaces();
if (interfaces.length == 0) {
alert('No network interfaces were detected');
return;
}
var success = KioWiFi.DeleteWlanProfile('mywifi', interfaces[0].guid);
Requirements
KioWare for Windows version 8.14 or greater.