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 operation="delete" attribute in the empty tag that represents the level:
<configuration>
<!- - opening tags for each parent level - ->
<level-to-delete operation="delete"/>
<!- - closing tags for each parent level - ->
</configuration>
We recommend that the application set the default mode to no-change by including the <default-operation> tag element with the value none, as described in Deleting Configuration Elements. For more information about hierarchy levels and container objects, see Mapping for Hierarchy Levels and Container Statements.
The following example shows how to remove the [edit protocols ospf] hierarchy level of the candidate configuration:
