you just need to restore it, and when it asks you if you want to restore from back up, just hit new phone, it will be wiped clean.
Just wondering as i am also about to sell a 2g iphone, how much did you sell it for, what did you include in the auction, what condition was the phone in? etc.
thanks, and hope that helps.