delete_smime_info
Deletes a specific S/MIME configuration for a send-as alias using the alias email and config ID.
Instructions
Deletes the specified S/MIME config for the specified send-as alias
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sendAsEmail | Yes | The email address that appears in the 'From:' header | |
| id | Yes | The immutable ID for the S/MIME config |
Implementation Reference
- src/index.ts:1233-1245 (handler)The 'delete_smime_info' tool is registered and handled in a single server.tool() call. It accepts a sendAsEmail and id parameter, then calls the Gmail API's users.settings.sendAs.smimeInfo.delete endpoint and returns the response.
server.tool("delete_smime_info", "Deletes the specified S/MIME config for the specified send-as alias", { sendAsEmail: z.string().describe("The email address that appears in the 'From:' header"), id: z.string().describe("The immutable ID for the S/MIME config") }, async (params) => { return handleTool(config, async (gmail: gmail_v1.Gmail) => { const { data } = await gmail.users.settings.sendAs.smimeInfo.delete({ userId: 'me', sendAsEmail: params.sendAsEmail, id: params.id }) return formatResponse(data) }) } )