Delete a calendar
Permanently delete a calendar. Its appointments are kept but no longer linked to a calendar.
DELETE
https://api.centerfy.ai/webhooks/inbound/calendars/:id Headers
| Header | Required | Value | Description |
|---|---|---|---|
x-api-key | Yes | your sub-account API key (cfy_…) | Authenticates the request; or use Authorization: Bearer <key>. |
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Yes | The calendar id. |
Example
curl -X DELETE "https://api.centerfy.ai/webhooks/inbound/calendars/{id}" \
-H "x-api-key: $CENTERFY_API_KEY" import { CenterfyClient } from "@centerfy/sdk";
const centerfy = new CenterfyClient({ apiKey: process.env.CENTERFY_API_KEY! });
const result = await centerfy.calendars.delete("<calendarId>");
console.log(result); centerfy calendars delete <calendarId> MCP tool: centerfy_calendars_delete (see MCP server)
Response
{
"status": "success",
"deleted": true,
"calendar_id": "4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b",
"appointments_unlinked": 12
}Errors
409— if the calendar is synced from an integration (Google/Outlook, HubSpot, Salesforce) — delete those in the app — or is still referenced elsewhere, e.g. assigned to an agent (remove those links first).404— if the calendar is not in this sub-account.