truly delete gmail account in Mavericks

I am trying to rebuild a corrupt gmail account from scratch in Mavericks so I'd like to delete it and then re-add it as if it were a brand new account.

I've tried deleting the account from Internet Accounts in System Preferences, but every time I re-add it, all of my old corrupt emails are still sitting in Mail. It's clear that Mavericks is caching all of my old gmails and gmail settings somewhere (or in multiple places) in the library.

Could someone advise which library files to remove so that this account is truly deleted from my computer?

thanks!
There is a lot of email support here on Apple support for Mavericks. See if any of them will help your situation.

Apple - Support - Search
~/Library/Containers/

There, you will find the com.apple.mail folder. I don't have Gmail configured with my MacBook running OS X Mavericks so I can't say whether or not there's a com.google.mail folder. Either way, if you find something associated with gmail, whether in its own folder or inside the com.apple.mail folder, delete it and see if that clears it up for you.
To go along with the above location suggestion, have you adjusted your mailbox behaviors for each account in preferences?

Original thread: https://forums.imore.com/threads/truly-delete-gmail-account-in-mavericks.284279/