Right now i am selling my droid to someone and my phone is currently rooted with miui.

What are the steps I need to do in order to get back to 2.2 stock and clean out the phone before i sell it.

Thanks