In all Samsung devices, there are two ways to factory reset. The first one is thru the Settings menu and other is by pressing the correct combination of hardware keys.