How do i reflash android?

I tried sailfishos on my xperia 10 plus but i have decided to switch back to android. Is there a way i can just flash the factory rom?

I found the following, but it looks like i need to rebuild from scratch. is this the only way?

The first section of this: Reinstalling Sailfish OS | Sailfish OS Documentation