If the gmail account you want to remove was the first one you put on there it is then your primary gmail account on the phone and only way to remove it is with a factory reset. Any secondary gmail account can be removed by doing what prtsmgr said by going into settings>accounts and remove the account.