clear router vrf

Use this command to delete the specified VRF and all its configuration from the device or to write a blank configuration to the global router.

Syntax

clear router vrf vrf-name

Parameters

vrf-name Specifies the name of the VRF router to delete.

Defaults

None.

Mode

All command modes.

Usage

This command is a powerful command that removes the specified VRF router.

When the global router is specified, the command effectively writes a blank configuration file to persistent memory. Unless the user is attached via a direct console connection, loss of management connectivity to the device should be expected. Before using this command, save the current configuration using the show config outfile command.

Example

This example shows how to clear the global VRF router configuration:

System(rw)->clear router vrf global

This example shows how to delete the nat1 VRF router:

System(rw)->clear router vrf nat1