remove_delegate
Remove a delegate from your Gmail account to revoke their access to manage your emails and settings.
Instructions
Removes the specified delegate
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| delegateEmail | Yes | Email address of delegate to remove |
Implementation Reference
- src/index.ts:975-986 (handler)Full implementation of the 'remove_delegate' tool, including registration, input schema, and handler function that uses the Gmail API to delete the specified delegate.server.tool("remove_delegate", "Removes the specified delegate", { delegateEmail: z.string().describe("Email address of delegate to remove") }, async (params) => { return handleTool(config, async (gmail: gmail_v1.Gmail) => { const { data } = await gmail.users.settings.delegates.delete({ userId: 'me', delegateEmail: params.delegateEmail }) return formatResponse(data) }) } )