I want to remove my google account which I created on the emulator for Google APIs level 8 AVD.
I tried removing it from Settings -> Accounts & sync -> Selecting account -> Remove Account
, but I get this message,
This account is required by some applications. You can only remove it by resetting the phone to factory defaults. You do that in the Settings application, under Privacy
I tried doing it by resetting the phone to factory defaults by going to Settings -> Privacy -> Factory data reset -> Reset data -> Erase everything
, and it shows a dialog of Power Off
message, with indefinite progress bar and later the emulator gets stuck. Then, later, when I close and restart the emulator, the account doesn't get deleted.
Also, I would like to know if it is possible to delete the account through code.
Go to Android AVD Manager, launch your avd, and then check Wipe user data
.
This will restore the AVD to it's initial configuration and wipe all the user data, accounts, and apps.