# How to remove a VPN profile on a MDM enrolled macOS

> Restoring from a Time Machine backup can create duplicate MDM VPN profiles. In order to remove them, follow these simple steps. If the profile cannot be…

- URL: https://graffino.com/til/how-to-remove-a-vpn-profile-on-a-mdm-enrolled-macos
- Author: Zeno Popovici
- Channel: command-line
- Published: 2021-05-26
- Updated: 2024-10-24

Restoring from a Time Machine backup can create duplicate MDM VPN profiles.


### To manually remove a profile on your macOS, follow these steps:

* Go to System Preferences and select Profiles.
* Delete the VPN profile, and enter the user password if requested.
* Then, go to Network Connections.
* If you see any connections which start with or include “VPN”, delete them.

### Note
If the Button isn’t available,you have to use a terminal command to remove it. Open the integrated Terminal and type 

```networksetup -removenetworkservice "duplicateVPNProfile"```
