The following steps are intended for the Samsung Galaxy Mega.
Tap the Menu button at the bottom of the screen.
Tap the Accounts Tab.
Tap Factory Data Reset.
Tap Reset Device.
Tap Delete All.
Once the phone restarts, it will need to be set up for the first time.