configure replace nvram:startup-config replaces the current running configuration with the saved startup configuration, removing unintended changes and restoring the device to the exact startup- config state. This is the correct command when a full replacement is required rather than merging configuration lines.