Default [Q] how to format galaxy y

I want to ask ,how to full format the galaxy y,all setting were be reset and all data was clear?