If you're talking about wiping the phone, a factory reset, you can't keep your data. There are backup tools. I'm pretty sure that device came with one. You can backup and restore after a factory reset. I'm really not sure if there's a way to return all settings to factory, apart from that.