Deleting the Candidate Configuration Using NETCONF
In a NETCONF session with a device running Junos OS, the <delete-config> tag element permits you to delete the current candidate configuration. Exercise caution when issuing the <delete-config> tag element. If you commit an empty candidate configuration, the device will go offline.
To delete the candidate configuration, insert the <delete-config> tag element in the <rpc> element. Specify the candidate configuration by enclosing the <candidate/> tag within the <target> tag.
<rpc> <delete-config> <target> <candidate/> </target> </delete-config> </rpc>
![]() | Warning: If you take the device offline, you will need to access the device through the console port on the device. From this console, you can access the CLI and perform a rollback to a suitable configuration. For more information on the console port, see the hardware manual for your specific device. |