delete_email
Permanently delete an email from your Gmail inbox by providing its message ID. Remove unwanted messages to keep your account organized.
Instructions
Permanently delete an email
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| messageId | Yes | Email message ID to delete |
Implementation Reference
- src/gmail-service.ts:72-74 (handler)The actual Gmail API call that deletes an email by ID via the Gmail API users.messages.delete endpoint.
async deleteEmail(id: string): Promise<void> { await this.gmail.users.messages.delete({ userId: 'me', id }); } - src/tools.ts:11-11 (schema)Zod schema defining the input for delete_email: expects a 'messageId' string parameter.
delete_email: z.object({ messageId: z.string().describe("Email message ID to delete") }),