Remove Gmail account
gmail_remove_accountRemoves a stored Gmail account by email or alias, revokes its refresh token, and updates the default account if needed.
Instructions
Remove a stored Gmail account by email or alias. Best-effort revokes the refresh token with Google, then deletes the local entry. If the removed account was the default, another stored account becomes the default (or the default is cleared).
Args:
account (string, required): email or alias to remove.
Returns: confirmation, including whether remote revocation succeeded and the new default account, if any.
Examples:
{"account": "personal"}
{"account": "you@example.com"}
Error Handling: removing an unknown account returns an error listing available accounts. Revocation failures are ignored (the local entry is still deleted), making this safe to repeat.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | Email or alias of the account to remove. |