To reset your Samsung Galaxy S4 to factory settings, follow these steps: Go to Settings and select Backup and reset. Tap Factory data reset. Confirm your selection by tapping Reset device. If you have a Google account associated with your device, you'll need to enter your email address and password to continue. Tap Delete all to erase your data and restart your device.