The following steps are intended for the LG Nexus 5.
Tap the All Apps Icon.
Tap Settings.
Tap Backup & Reset.
Tap Factory Data Reset.
Tap Reset Phone.
Tap Erase Everything.
Once the phone restarts, it will need to be set up for the first time.