hi team ,
I was thinking to add a useful command that allows resetting all running configuration and just leave the basic initial config that keeps hw-id, interfaces numbering , etc .
Juniper /Cisco/others vendors has this type of command that it also can integrate with api .
Restore factory defaults There may be a need to reset the FortiGate to its original defaults; for example, to begin with a fresh configuration. There are two options when restoring factory defaults. The first resets the entire device to the original out-of-the-box configuration. You can reset the device with the following CLI command: execute factoryreset
I think that we can make a restored this initial config ,after the fresh installation .