The <discard-changes> tag allows you to roll back the candidate configuration to a previous configuration. To roll back the candidate to the current running configuration, insert the <discard-changes> tag within the <rpc> tag.
<rpc>
<discard-changes/>
</rpc>
]]>]]>
This operation is equivalent to the CLI configuration mode rollback 0 command.
The NETCONF server indicates that it discarded the changes by returning the <load-success/> tag after you issue the </discard-changes> tag.