hard reset nexus 4 nesus 5 nexus 5X
1-The device must by turned off,
2- Afterwards press and hold together: Volume down + Power button, until you see the Android logo.
3-Then select from menu Recovery mode” using Volume buttons to navigate and Power button to confirm.
4-press together: Volume up + Power
5-Then select from menu “wipe data / factory reset” using Volume buttons to navigate and Power button to confirm.
5-Choose “Yes — delete all user data” to confirm the whole operation.Wipe data
6-After that select option “reboot system now”.
7-Well done! The hard reset has just been performed.