[Contents] [Prev] [Next] [Index] [Report an Error]

Deleting a Hierarchy Level or Container Object

To delete a hierarchy level and all of its children (or a container object that has children but no identifier), a client application includes the basic tag elements or configuration statements for its parent levels, as described in Creating, Modifying, or Deleting Configuration Elements.

If using JUNOS XML tag elements, the application includes the delete="delete" attribute in the empty tag that represents the level or container object:

<configuration>
<!- - opening tag for each parent level - ->
<level-or-object delete="delete"/>     
<!- - closing tag for each parent level - ->
</configuration>

If using formatted ASCII text, the application places the delete: statement above the level to be removed, which is followed by a semicolon (even though in the existing configuration it is followed by curly braces that enclose its child statements):

<configuration-text>
/* statements for parent levels */
delete:
object-or-level;
/* closing braces for parent levels */
</configuration-text>

The following example shows how to remove the [edit protocols ospf] hierarchy level from the candidate configuration:

Image t1137.gif
[Contents] [Prev] [Next] [Index] [Report an Error]