---
title: "Remove an unattached public booking that Calendly no longer shows"
method: POST
path: "/cohorts/{cohortId}/public-bookings/{bookingId}/remove"
tags: ["Cohorts"]
---

# Remove an unattached public booking that Calendly no longer shows

`POST /cohorts/{cohortId}/public-bookings/{bookingId}/remove`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/cohorts/{cohortId}/public-bookings/{bookingId}/remove`
- Auth: HTTP bearer

MED-1389. Marks the booking canceled in Medley only, with no vendor
cancel. It reads the invitee in Calendly again first and removes the
booking only when Calendly answers 403 or 404.

## Path parameters

- `cohortId` string, uuid, required
- `bookingId` string, uuid, required

## Response `200`

The booking is removed from the list

## Other responses

- `403`: Not staff, or impersonating
- `404`: No unattached booking with this id in this cohort
- `409`: Calendly can still read the booking (booking_reachable), or it changed
- `422`: Invalid id
- `502`: Calendly did not answer; the booking stays

---

[API](https://skmtc.dev/withmedley/apis/medley-api.md) - [All operations](https://skmtc.dev/withmedley/apis/medley-api/llms.txt) - [OpenAPI document](https://skmtc.dev/withmedley/apis/medley-api/revisions/40aaac5ca6bd?raw)
