Delete Event

Deletes an event from the specified calendar

Usage #

// Import the typed helper
import { deleteEvent } from "@hotglue/sdk/google_calendar";
const result = await client.execute({
...deleteEvent({
calendar_id: string,
event_id: string,
send_updates: string,
}),
userId: "user_123",
});
// result is typed as DeleteEventOutput
const result = await client.execute({
integration: "google_calendar",
tool: "delete_event",
userId: "user_123",
input: {
calendar_id: string,
event_id: string,
send_updates: 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 Event tool");

Required Permissions #

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

Input Schema #

calendar_id string required

Calendar identifier

event_id string required

Event identifier

send_updates string

Whether to send notifications about the deletion

values: all, externalOnly, none

This tool calls: #

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