{{indexmenu_n>2}} ====== Delete L3 VPN ====== So until now, we have seen How to [[guides:user:l3vpn:l3vpn|add]] a L3VPN , how to [[guides:user:l3vpn:l3vpnmodify|modify]] parameter(s) on an existing L3VPN. On this page, we demonstrate how to decommission a VPN. The general workflow is as below: - Template(s) to negate the CLI that was put up during the Add - Service Type to delete the information from the database ====== Template ====== Here we need to alter our AddVRF template to accomodate for an extra variable 'Decommission' which when set to 'Y' will initiate the negation of CLI as shown below ===== AddVRF ===== #reload PE_CE_nets interface / |Decommission='Y'|no ip vrf forwarding \ no ip address \ no service-policy input police \ shut |Decommission!='Y'|ip vrf forwarding \ ip address \ service-policy input police \ no shut Next we need to create a new Command Job with parameter below ===== Command Job ===== ==== Delete L3VPN ==== {{guides:howto:delete_command_job.png?400|}} Most of the lines in the Commands are self explanatory. The Scenario: section now includes a flag Decommission with value 'Y' which informs the AddVRF template to execute the decommission block The output from Evaluate button reveals following configuration will be pushed to the device {{guides:howto:delete_command_job_02.png?400|}} Now we need to clean up the database by removing the record for the Add L3VPN entry created by the Service Type during the Add phase ==== Service Type ====