using emma will wipe everything. it will wipe your recovery, your data, your boot etc, so that will be fine and if you don't exclude something when using flash tool this will happen too.
emma is sony's offical flash tool for unlocked devices. just read through the linked website, it takes you...