To delete a configuration object that has an identifier, a client application includes the operation="delete" attribute in the container tag element for the object. Inside the container tag element, it includes the identifier tag element only, not any tag elements that represent other characteristics. In the following, the identifier tag element is called <name>:
<configuration>
<!- - opening tags for each parent of the object - ->
<object operation="delete">
<name>identifier</name>
</object>
<!- - closing tags for each parent of the object - ->
</configuration>
![]() |
Note: The delete attribute appears in the opening container tag, not in the identifier tag element. The presence of the identifier tag element results in the removal of the specified object, not in the removal of the entire hierarchy level represented by the container tag element. |
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 identifiers, see Mapping for Objects That Have an Identifier.
The following example shows how to remove the user object barbara from the [edit system login user] hierarchy level in the candidate configuration:
