In settings, go to "Accounts & Sync", under "Manage accounts" click your gmail account, then you can delete that account. You will get a warning saying you must reset to default factory configuration where your personal info like calendar/email linked with that gmail account will be removed.
You can proceed and your installed apps will still be there.
Hope this helps.
Shengxin