Delete Calendar

Deletes a secondary calendar. Cannot delete the primary calendar.

Usage #

// Import the typed helper
import { deleteCalendar } from "@hotglue/sdk/google_calendar";
const result = await client.execute({
...deleteCalendar({
calendar_id: string,
}),
userId: "user_123",
});
// result is typed as DeleteCalendarOutput
const result = await client.execute({
integration: "google_calendar",
tool: "delete_calendar",
userId: "user_123",
input: {
calendar_id: string,
},
});
// The agent will automatically use this tool when needed
const agent = new Agent({
tools: () => hotglueTools({
integrations: ["google_calendar"],
userId: "user_123",
}),
});
await agent.generate("run the Delete Calendar tool");

Required Permissions #

https://www.googleapis.com/auth/calendar

Input Schema #

calendar_id string required

Calendar identifier

This tool calls: #

DELETE https://www.googleapis.com/calendar/v3/calendars/{calendar_id}