---
title: "Delete a time slot"
method: DELETE
path: "/cohorts/{cohortId}/time-slots/{timeSlotId}"
tags: ["TimeSlots"]
---

# Delete a time slot

`DELETE /cohorts/{cohortId}/time-slots/{timeSlotId}`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/cohorts/{cohortId}/time-slots/{timeSlotId}`
- Auth: none declared

Soft deletes a time slot. Cannot delete if assigned to a scheduled group session.

## Path parameters

- `cohortId` string, uuid, required
- `timeSlotId` string, uuid, required

## Response `204`

Time slot deleted

## Other responses

- `400`: Cannot delete - time slot is assigned to a scheduled session
- `401`: Unauthorized
- `404`: Cohort or time slot not found

---

[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)
