I am working on MAC Application in which i have to create VPN Connection through my application.
I am able to create VPN connection successfully but now I want to delete the interface which was created by my application in network of System Preference.
I tried below code it run successfully but it does not delete that from network list
service = SCNetworkServiceCopy(prefs, (__bridge CFStringRef)(config.serviceID));
Boolean isDeleted = SCNetworkServiceRemove(service);
Is there any other methods to delete the network interface?