Can not delete a Network Service - VPN

Hi,


In my network settings I added a VPN service by clicking on the plus button.

I can not delete this network service anymore. It seems to be stuck. The minus button is blurred and not active.

I can change its poition and deactivate it but not delete.


I can add aditional services which I can also delete.


Only one VPN entry is stuck.


Is there a terminal way to delete such entry? Or any plist I have to edid?


Tanks in advance - regards Sascha

Mac OS X (10.7)

Posted on Mar 30, 2012 8:04 AM

Reply
4 replies

Mar 30, 2012 9:03 AM in response to voyou

Launch the Terminal application in any of the following ways:


Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)


In the Finder, select Go Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.


If you’re running Mac OS X 10.7 or later, open LaunchPad. Click Utilities, then Terminal in the page that opens.


Drag or copy – do not type – the following line into the Terminal window, then press return:


networksetup -listallnetworkservices


Post any lines of output that appear below what you entered – the text, please, not a screenshot.

Mar 31, 2012 2:36 AM in response to voyou

…I found the stuck VPN entry here:


/Library/Preferences/SystemConfiguration/preferences.plist


I was able to delete the stuck network service by editing the preferences-plist.


All other services are working normally and I also could add and delete new ones.


I guess my problem is solved.


Only the question why did this happen with the stuck network service is left.


But the major problem is solved.

Jun 3, 2012 5:36 AM in response to voyou

Creating a new Network location is the quickest but not most convenient solution here.

There is a profiles section in Sys Prefs which lists all configured VPN Profiles. Checking there is a good place to start.


Voyou is right, there is a .plist file that needs to be edited if you want to resolve this issue entirely.


Open the original file with Xcode and expand all of the directories/subdirectories. (Good to backup the .plist file first)

Search for VPN and delete any VPN files.

Close Xcode, Reboot your Mac and you will have successfully deleted that VPN.


Hope it works for you!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Can not delete a Network Service - VPN

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.