delete_webinar
Remove scheduled or recurring Zoom webinars by specifying the webinar ID, optionally including occurrence ID and cancellation emails to registrants.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cancel_webinar_reminder | No | Send cancellation email to registrants | |
| occurrence_id | No | The occurrence ID for a recurring webinar | |
| webinar_id | Yes | The webinar ID |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"cancel_webinar_reminder": {
"description": "Send cancellation email to registrants",
"type": "boolean"
},
"occurrence_id": {
"description": "The occurrence ID for a recurring webinar",
"type": "string"
},
"webinar_id": {
"description": "The webinar ID",
"type": "string"
}
},
"required": [
"webinar_id"
],
"type": "object"
}
Implementation Reference
- src/tools/webinars.js:95-111 (handler)The async handler function that constructs parameters for optional occurrence_id and cancel_webinar_reminder, makes a DELETE request to Zoom API endpoint `/webinars/${webinar_id}`, returns success message on completion, or handles errors.handler: async ({ webinar_id, occurrence_id, cancel_webinar_reminder }) => { try { const params = {}; if (occurrence_id) params.occurrence_id = occurrence_id; if (cancel_webinar_reminder !== undefined) params.cancel_webinar_reminder = cancel_webinar_reminder; const response = await zoomApi.delete(`/webinars/${webinar_id}`, { params }); return { content: [{ type: "text", text: "Webinar deleted successfully" }] }; } catch (error) { return handleApiError(error); } }
- src/tools/webinars.js:90-94 (schema)Zod schema defining the input parameters: webinar_id (string, required), occurrence_id (string, optional), cancel_webinar_reminder (boolean, optional).schema: { webinar_id: z.string().describe("The webinar ID"), occurrence_id: z.string().optional().describe("The occurrence ID for a recurring webinar"), cancel_webinar_reminder: z.boolean().optional().describe("Send cancellation email to registrants") },
- src/server.js:48-48 (registration)Call to registerTools which iterates over webinarsTools array and registers each tool (including delete_webinar) to the MCP server via server.tool(name, schema, handler).registerTools(webinarsTools);