delete_event
Remove a specific calendar event using its unique event ID to manage Google Calendar entries programmatically via the Google Workspace MCP Server.
Instructions
Delete a calendar event
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| eventId | Yes | Event ID to delete |
Implementation Reference
- src/index.ts:255-268 (registration)Registration of the 'delete_event' tool in the ListTools response, including name, description, and input schema.{ name: "delete_event", description: "Delete a calendar event", inputSchema: { type: "object", properties: { eventId: { type: "string", description: "Event ID to delete", }, }, required: ["eventId"], }, },
- src/index.ts:642-670 (handler)The handler function that executes the delete_event tool by deleting the specified calendar event using the Google Calendar API.private async handleDeleteEvent(args: any) { try { const { eventId } = args; await this.calendar.events.delete({ calendarId: "primary", eventId, }); return { content: [ { type: "text", text: `Event deleted successfully. Event ID: ${eventId}`, }, ], }; } catch (error: any) { return { content: [ { type: "text", text: `Error deleting event: ${error.message}`, }, ], isError: true, }; } }
- src/index.ts:258-267 (schema)Input schema definition for the delete_event tool, specifying the required 'eventId' parameter.inputSchema: { type: "object", properties: { eventId: { type: "string", description: "Event ID to delete", }, }, required: ["eventId"], },