Turn off your phone, then press and hold the Power/Bixby key and Volume Up key, then press and hold the Power key. Release the keys when the Android mascot appears. When the Android system recovery menu appears, use the Volume Down key to select "Wipe Data/Factory Reset" and press the Power/Bixby key to proceed. Select Yes and proceed again. When the factory reset completes, select "Reboot System Now".