Options>security options>general settings>menu button>wipe handheld.
I believe that this will clear all your info and put everything back to factory default. That's what I did when I got rid of my Pearl.
Posted from my CrackBerry at wapforums.crackberry.com