When trying to delete a VPN policy the message “Error: Index of the interface: Interface is in use by OSPF” is shown.
Just like the message states, you must disconnect some dependencies before the VPN policy can be removed. To resolve this issue you will first need to disable the OSPF instance and delete the VPN Interface to the go ahead and delete the VPN Policy.
Follow the steps below:
1. Go to Network | Routing. Under Routing Protocols select Routing Mode: Advanced Routing.
2. Click on Configure OSPF round button corresponding to the VPN you would like to delete and disbable the first feild OSPFv2..
3. Go to Network | Interfaces and delete the VPN Interface.
4. Go to VPN | Settings. Now you should be able to delete the VPN completely.