I have a Samsung Galaxy S4 with Android upgraded to 5.0.1. There is a GMail account added that I've linked in order to install a specific application (Google Domain Policy) and now I want to remove that account in order to pass the phone to my co-worker.
I've gone to Settings
-> Accounts
and the account is listed there (as a Google account). I can tap that and get to privacy and sync settings but I can't see any option to delete the account. I've tried tapping, tapping and holding, double-tapping, swiping and everything else that happened to cross my mind but to no avail.
How on earth do I remove that account from the system if there's no delete option visible?
Click image(s) for larger versions
/data/system/users/0/accounts.db
keeps the web accounts info. Remove the account entries from that file, restart and the account would be gone from Settings -> Accounts. This definitely needs root access.