Use this command to reset the FortiMail VM configuration to its factory default settings, but keep the VM license file.
execute factoryreset keeplicense
backup