removeConnection(String profileName)
2 min
Removes an existing VPN profile.Syntax:
Syntax:
int removeConnection(String profileName)
Parameters:
The profileName is the name of a VPN profile that was created with the functions addVPNConnection or createConnection(String jsonProfile).
Returns:
This method returns 0 on success, 1 if the profile does not exist, and -1 on other errors. One of the other errors occurs when an active VPN session is using the profile. When this method returns 1 or -1, the caller can call getErrorString() to obtain a description of the error.
Since:
R3