title: How to delete network interface of MAC using Objective C
body: <p>I am working on MAC Application in which i have to create VPN Connection through my application.</p>
  
  <p>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.</p>
  
  <p>I tried below code it run successfully but it does not delete that from network list </p>
  
  <pre><code>service = SCNetworkServiceCopy(prefs, (__bridge CFStringRef)(config.serviceID));
  Boolean isDeleted = SCNetworkServiceRemove(service);
  </code></pre>
  
  <p>Is there any other methods to delete the network interface?</p>