To reset your HTC Dream:
1)Turn on your phone
2) Press and hold down the Home button until the appearance of an exclamation point
3) Open your keyboard, press and hold Alt + L
4) A menu shall open press Alt + W.
Your phone should be reset to factory settings.