Delete a configuration node — delete
An example that shows how to use the delete
command to delete a configuration.
- Use the
delete
command to delete a configuration.user@system# delete interfaces dataplane dp0p1p1 address 192.0.2.21/24
[edit] user@system#
- Optional: Use the
show
command to see the deletion.user@system# show interfaces dataplane dp0p1p1
-address 192.0.2.21/24 hw-id 00:13:46:e6:f6:87 [edit] user@system#
Notice the minus sign
-
in front of the deleted statement. This shows that you have deleted this statement from the configuration, but you have not yet committed this change. The change does not take effect until you commit the configuration with thecommit
command. - Optional: Use the
compare
command to see the change.user@system# compare
[edit interfaces dataplane dp0p1p1] -address 192.0.2.21/24 user@system#
Some configuration nodes and statements are mandatory; you cannot delete them. Some configuration statements are mandatory, and have default values; if you 'delete' one of these statements, then you reset the value to the default.