You can replace the candidate configuration with a new configuration file using the <copy-config> tag, or you can use the <edit-config> tag with the <default-operation> subtag value set to replace.
For information about completely replacing the candidate configuration, see the following sections: