# Sessions

The programme: talks, panels and their speakers, times and rooms.

Base URL: https://api.audiobly.com

### DELETE /v1/events/{event_id}/sessions/{session_id}/audio

Clear session audio

Remove a session's audio and everything derived from it, reverting the session to PENDING
('Missing', awaiting a fresh upload) — WITHOUT deleting the session, its programme slot or its
speakers.

This is the Source-tab action for a failed or wrong upload: the user wants to clear the audio and
re-upload, NOT lose the session. (Deleting the whole session lives on the programme tab.)
Idempotent — a session that already has no audio is simply left at PENDING. A failed upload
usually has none of the derived rows; they're cleared defensively so a re-upload starts clean.
Transcript deletes cascade their own dependents (edits/suggestions) at the DB level, exactly as
whole-session deletion relies on.

A live capture is part of what gets cleared. An editor pressed Go live by accident, stopped,
and could then never capture the real session: the capture tool allows one capture per
session and reported "already captured", and removing the transcript here left the capture
row behind, so nothing reset it (production, 2026-09-15). The capture and its segments and
speaker names go too — but never one still running: stopping a live room from another
screen would silently cut its transcript off.

Scope: prep_manage

Parameters:

- `event_id` (path, string (uuid), required)
- `session_id` (path, string (uuid), required)

Responses:

- 204: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.
