to commonly asked questions.

How can I remove my Gmail account from my Mac?

Help. I only use gmail and I changed something that has enabled my apple mail to work. I don't want it jumping up from my tool bar or being used. How do I stop it there's 43,000 duplicate emails in there. I think my gmail is forwarding there too. HELP

Sounds like you've added Gmail into internet accounts that allows your Apple Mail to check it but you prefer to check your email only using a web browser. Fairly harmless but some prefer not to have their email in Apple Mail. To remove the gmail account from Apple Mail, open system preferences and find the Internet Accounts pane.

Select the gmail account listed there then hit the minus key. This will remove the Gmail account from Apple's mail program. It will also remove any calendars and contacts associated to the Gmail account. If you change your mind, you can re-add it and any contacts and calendars will return.
This image is a theme.plist hack