(interface, ssid, sudo_password=None)
Removes |ssid| from the list of preferred networks on |interface|.

  If Python is not running as root and sudo_password is not supplied an
  authorization dialog will appear.

  Args:
    interface: the interface to remove the preference from.
    ssid: the SSID of the network.
    sudo_password: optional password to get sudo access.

  Raises:
    PreferenceRemovalError: preference could not be removed. Exception message
      is the stderr.
Removes |ssid| from the list of preferred networks on |interface|.
Removes |ssid| from the list of preferred networks on |interface| .
def RemovePreferredNetwork(interface, ssid, sudo_password=None):
  """Removes |ssid| from the list of preferred networks on |interface|.

  If Python is not running as root and sudo_password is not supplied an
  authorization dialog will appear.

  Args:
    interface: the interface to remove the preference from.
    ssid: the SSID of the network.
    sudo_password: optional password to get sudo access.

  Raises:
    PreferenceRemovalError: preference could not be removed. Exception message
      is the stderr.
  """
  args = (_NETWORK_SETUP, '-removepreferredwirelessnetwork', interface, ssid)
  _, stderr, rc = gmacpyutil.RunProcess(args, sudo=bool(sudo_password),
                                        sudo_password=sudo_password)
  if rc:
    raise PreferenceRemovalError(stderr)
def RemovePreferredNetwork ( interface , ssid , sudo_password = None ) : args = ( _NETWORK_SETUP , '-removepreferredwirelessnetwork' , interface , ssid ) _ , stderr , rc = gmacpyutil . RunProcess ( args , sudo = bool ( sudo_password ) , sudo_password = sudo_password ) if rc : raise PreferenceRemovalError ( stderr )