clear configuration this

Function

The clear configuration this command deletes configurations on an interface at a time to restore the default configurations.

Format

clear configuration this

Parameters

None

Views

NULL interface view, all-interface view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
config debug

Usage Guidelines

Usage Scenario

To configure an interface on a device for other use, original configurations on the interface need to be deleted one by one. If the interface has a large number of configurations, deleting these configurations one-by-one takes a long time and increases the maintenance workload. To reduce the maintenance workload and simplify the deletion operation, you can use this command to perform one-touch configuration clearance on an interface.

You can also run the clear configuration interface command in the system view to delete configurations on a specified interface.

Configuration Impact

After you run the clear configuration this command, the system displays a message, asking you whether to delete the configurations on the specified interface. If you enter Y, all configurations on the specified interface are deleted.

Running the clear configuration this command on an interface is similar to running undo commands on the interface in batches.

Example

# Perform one-touch configuration clearance on GigabitEthernet0/1/1.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/1
[~HUAWEI-GigabitEthernet0/1/1] display this
#
interface GigabitEthernet0/1/1
 description tes
 undo shutdown
 ip address 1.1.1.1 255.255.255.0
#
return
[~HUAWEI-GigabitEthernet0/1/1] clear configuration this
Warning: All running configurations of the interface will be cleared immediately. Continue? [Y/N]:y
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >