Sony Xperia Z3 Compact Hard reset.

Hi Guys.

I have an Xperia Z3 compact needs hard reset. How to perform it? I tried to do it in many different ways from keys but it won’t work. Screen locked with code and code is missing.

Regards