Skip to main content
Glama
adamzaidi

icloud-mcp

by adamzaidi

delete_event

Remove a calendar event permanently from iCloud Calendar by specifying the calendar and event IDs.

Instructions

Delete a calendar event permanently from iCloud Calendar.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
calendarIdYesCalendar ID containing the event
eventIdYesEvent ID to delete

Implementation Reference

  • The `deleteEvent` function handles the deletion of an event from a CalDAV calendar by making a DELETE request to the event's URL.
    export async function deleteEvent(calendarId, eventId) {
      const { dataHost, calendarsPath } = await discover();
      const url = `${dataHost}${calendarsPath}${calendarId}/${eventId}.ics`;
    
      const resp = await davRequest('DELETE', url);
      if (resp.status === 404) throw new Error(`Event not found: ${calendarId}/${eventId}`);
      if (resp.status !== 204 && resp.status !== 200) {
        throw new Error(`CalDAV DELETE failed: ${resp.status}`);
      }
    
      return { deleted: true, eventId, calendarId };
    }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/adamzaidi/icloud-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server