To delete from a configuration object either a fixed-form option or an option that takes just one value, 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 information about deleting an option that can take multiple values, see Deleting Values from a Multivalue Option of a Configuration Object.)
If using JUNOS XML tag elements, the application includes the delete="delete" attribute in the empty tag for each option. It does not include tag elements for children that are to remain in the configuration. In the following, the identifier tag element for the object is called <name>:
<configuration>
<!- - opening tag for each parent of the object - ->
<object>
<name>identifier</name> <!- - if the object has an identifier - ->
<option1 delete="delete"/>
<option2 delete="delete"/>
<!- - tag elements for other options to delete - ->
</object>
<!- - closing tag for each parent of the object - ->
</configuration>
If using formatted ASCII text, the application places the delete: statement above each option:
<configuration-text>
/* statements for parent levels of the object */
object identifier;
delete:
option1;
delete:
option2;
/* closing braces for parent levels of the object */
</configuration-text>
The following example shows how to remove the fixed-form disable option at the [edit forwarding-options sampling] hierarchy level.
