Don't Forget to take Backup Of Your data before reset. Just follow the following instructions to factory reset your Samsung Galaxy S5.
- Turn the Galaxy S5 off.
- Now press and hold the Volume up button, the Home button, and the Power button together until you see the Android on screen.
- Now use Volume down to highlight the wipe data/factory reset option and press the Power button to select it.
- Use Volume down again to highlight Yes – delete all user data and press Power to select it.
- Wait until you see the reboot system now option and then use the Power button to select it.
- When the S5 restarts it should be completely wiped and ready to set up again.a