How to Factory Reset Sony Xperia Z5 Premium
To perform a factory data reset on your Sony Xperia Z5 Premium
On the Home screen of your Phone
Go to Menu -> Settings -> Backup & reset -> Factory data reset.
Click Reset phone.
If required enter your screen unlock password or PIN or unlock pattern to continue.
To confirm click -> Erase everything.