Java tutorial
//package com.java2s; //License from project: Apache License import android.accounts.Account; import android.accounts.AccountManager; import android.content.Context; public class Main { /** * Remove specified account * @param context context * @param account account to remove */ public static void removeAccount(Context context, Account account) { final AccountManager accountManager = AccountManager.get(context); accountManager.removeAccount(account, null, null); } }