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 .
https://www.juniper.net/documentation/us/en/software/junos/cli/topics/topic-map/junos-factory-default.html
https://docs.fortinet.com/document/fortigate/7.0.0/administration-guide/702257/configuration-backups
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 .