In short, just open the Advanced reset tab in the Settings menu. Then under the Reset type, go for Factory Reset.