You need to backup without license key and fqdn. Move this backup to a location outside of 3cx
Shutdown the existing 3cx server, or delete the server
Under the customer portal , release the fqdn (this is not your partner portal)
Install 3cx, and select restore from backup (use backup from previous step) follow prompts to install