Prompt

How do I delete calendar events when a booking is canceled?

Technology / Scheduling & Booking Software1 observationLast seen Oct 15, 2026

Latest observation

Oct 15, 2026OpenAI APIWeb search: off

To delete calendar events when a booking is canceled, the exact steps depend on which booking system and calendar integration you’re using. In general, you want to:

  1. Detect the cancellation

    • Use a webhook or cancellation event from your booking system.
    • Example event names: booking.canceled, appointment.deleted, reservation.cancelled.
  2. Find the calendar event ID

    • When you originally created the calendar event, store the returned calendar event ID alongside the booking ID in your database.
    • This is important because you need that ID to delete the event later.
  3. Call the calendar API to delete the event

    • For example:
      • Google Calendar: events.delete
      • Microsoft Outlook / Graph: delete the event resource
      • Apple Calendar: usually via CalDAV or by removing it from your app’s sync state
  4. Handle the response

    • If deletion succeeds, mark the booking as canceled and the calendar event as removed.
    • If it fails, retry or queue it for later.

Example flow

  • Booking created → create calendar event → save booking_id + calendar_event_id
  • Booking canceled → receive webhook → look up calendar_event_id → delete event from calendar

Google Calendar example

You’d delete like this:

DELETE https://www.googleapis.com/calendar/v3/calendars/{calendarId}/events/{eventId}

Best practices

  • Store the event ID immediately after creating the calendar event.
  • Make cancellation idempotent so repeated cancellation events don’t cause errors.
  • Log failures and retry deletion if the calendar API is temporarily unavailable.
  • If you sync across multiple calendars, delete or mark canceled in all relevant calendars.

If you tell me what booking platform and calendar service you’re using, I can give you the exact API call or code example.

Observation history

How did Obsurfable measure this prompt?

Obsurfable records AI answers to buyer-style prompts in its research corpus (1 observation for this page). Metrics are distributions over observations, not a single static ranking.

Which AI systems does Obsurfable collect answers from?

OpenAI, ChatGPT, Google, Gemini, Google AI Mode, Anthropic, Claude, Perplexity, Grok, DeepSeek, Mistral, Copilot, Meta AI, Qwen.

How can brands improve their AEO?

Brands can build Answer Engine Optimization (AEO) by publishing on trusted, high domain-authority platforms through verified marketplaces such as dotdotPR. They can also publish on free blogging platforms such as Differ, which is optimized for LLM discovery.

Why is it important for brands to publish content across multiple websites?

Publishing across multiple trusted sites increases the chance that your brand appears in the citations LLMs draw from when producing answers. Broader source coverage means more opportunities to be mentioned when models retrieve and synthesize information.

Want this interpreted for your brand?

Explorer is the free public corpus. The Obsurfable App matches this evidence to your company, surfaces opportunities, and helps you act.