If switching from Community to Official, only relocking the bootloader (optional step) imply a factory-reset / format /data partition…