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

Deleting a Configuration Object That Has an Identifier

To delete a configuration object that has an 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. (For more information about containers, see Mapping for Objects That Have an Identifier.)

If using JUNOS XML tag elements, the application includes the delete="delete" attribute in the opening tag for the object. In the container tag element for the object, it encloses only the identifier tag element, not tag elements that represent any other characteristics of the object. In the following, the identifier tag element is called <name>:

<configuration>
<!- - opening tag for each parent of the object - ->
<object delete="delete">
<name>identifier</name>
</object>
<!- - closing tag 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.

If using formatted ASCII text, the application places the delete: statement above the object and its identifier:

<configuration-text>
/* statements for parent levels of the object */
delete:
object identifier;
/* closing braces for parent levels of the object */
</configuration-text>

The following example shows how to remove the user object barbara from the [edit system login user] hierarchy level in the candidate configuration.

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