The google account is saved in /data/system/users/0/accounts.db. If you wish to purge Google completely, then you can delete this file. Delete accounts.db (or better renaming it to accounts_backup.db) helps also for the cannot connect problem. The google account name is also saved into /data/system/sync/accounts.xml