Power On your Samsung mobile.
Go to the Settings menu.
Next, Find and Select Backup & Reset option.
Afterward, Select the Factory Data Reset option.
After that, Select option Reset phone or Reset Device.
Then Select Erase everything option.
Reset Done on your Samsung Mobile.