This will work if you want to remove account without factory reset your device.
Steps
- Make sure you have rooted your device.
- Mount /data/system as read and write access
- Go into /data/system and remove accounts.db
- Reboot your device and you made it.