Charge your phone to at least 50% to avoid it turning off mid-reset. Google Account:

Use the to navigate to the Wipe data/factory reset option. Press the Power button to select it.

Ensure any important files are backed up to the cloud, as this process is irreversible.