delete_a_meeting
Delete a Zoom meeting by providing its meeting ID. Removes the scheduled meeting permanently.
Instructions
Delete a meeting with a given ID
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID of the meeting to delete. |
Implementation Reference
- operations/meeting.ts:81-89 (handler)The actual handler function for 'delete_a_meeting'. It calls zoomRequest with a DELETE method to the Zoom API endpoint for the given meeting ID.
export async function deleteMeeting(options: DeleteMeetingOptions) { const response = await zoomRequest( `https://api.zoom.us/v2/meetings/${options.id}`, { method: "DELETE", }, ); return response; } - operations/meeting.ts:40-42 (schema)The input schema (DeleteMeetingOptionsSchema) for 'delete_a_meeting'. Requires a numeric 'id' field for the meeting to delete.
export const DeleteMeetingOptionsSchema = z.object({ id: z.number().describe("The ID of the meeting to delete."), }); - index.ts:137-140 (registration)Tool registration in ListToolsRequestSchema - declares the 'delete_a_meeting' tool with description and input schema.
name: "delete_a_meeting", description: "Delete a meeting with a given ID", inputSchema: zodToJsonSchema(DeleteMeetingOptionsSchema), }, - index.ts:172-178 (registration)Tool call handler case in CallToolRequestSchema - parses arguments with DeleteMeetingOptionsSchema and calls deleteMeeting().
case "delete_a_meeting": { const args = DeleteMeetingOptionsSchema.parse(request.params.arguments); const result = await deleteMeeting(args); return { content: [{ type: "text", text: result }], }; } - common/util.ts:22-47 (helper)The zoomRequest helper utility used by deleteMeeting to make the actual HTTP DELETE call to the Zoom API.
export async function zoomRequest( url: string, options: RequestOptions = {}, ): Promise<unknown> { const token = (await getAccessToken()).access_token; const headers: Record<string, string> = { "Content-Type": "application/json", "User-Agent": USER_AGENT, Authorization: `Bearer ${token}`, ...options.headers, }; const response = await fetch(url, { method: options.method || "GET", headers, body: options.body ? JSON.stringify(options.body) : undefined, }); const responseBody = await parseResponseBody(response); if (!response.ok) { throw createZoomError(response.status, responseBody); } return responseBody; }