How can I turn it off?

EDIT: Ha, I was fast enough this time. Alright. So what do I need to do to do a real factory reset? I mean deleting everything so I can do a fresh install. Just doing all the "format ..." commands that are available? What else do I need to do?