modern-winter-66316
02/23/2026, 9:41 AMtall-airline-16756
02/23/2026, 9:41 AMmodern-winter-66316
02/23/2026, 9:41 AMtall-airline-16756
02/23/2026, 9:41 AMtall-airline-16756
02/23/2026, 9:41 AMsession.shutdown() or delete the room via the API; both actions will disconnect all participants and end the session. For more details, see the Job Lifecycle documentation: https://docs.livekit.io/agents/server/job/#session-shutdown
Would you like step‑by‑step instructions for ending a session in the dashboard, or details on the API call?
Sources: Job lifecycle | LiveKit Documentation | Agents telephony integration | LiveKit Documentationmodern-winter-66316
02/23/2026, 9:41 AMtall-airline-16756
02/23/2026, 9:42 AMsession.shutdown() or by deleting the room via the API; both actions disconnect participants and end the session. More on session shutdown here: https://docs.livekit.io/agents/server/job/#session-shutdown
• You can view active sessions and agent activity in the Agent insights/Observability area of the dashboard: https://docs.livekit.io/deploy/observability/insights/
To give the exact dashboard steps I’ll need one quick clarification:
• Which dashboard are you using — the LiveKit Cloud web dashboard for Agents (Agent Builder / Observability) or a self-hosted LiveKit dashboard? If possible, tell me what screen you see (e.g., “Agent insights”, “Rooms list”, or a page showing active sessions).
If you prefer an immediate way to stop a session, I can give the API/SDK snippet you can run right now to shut it down. Which would you like?
Sources: Job lifecycle | LiveKit Documentation | Agent Builder | LiveKit Documentationmodern-winter-66316
02/23/2026, 9:42 AMtall-airline-16756
02/23/2026, 9:42 AMsession.shutdown() in your server code for the job/session you want to stop. This disconnects all participants and ends the session.
b. Or delete the room via the API (deleting the room will disconnect everyone and end the session).
• Dashboard inspection + guidance
◦ You can view active sessions and agent activity in the Agent insights / Observability area of the LiveKit Cloud dashboard. If you tell me what you see on that screen (for example: a list titled “Rooms”, “Agents”, or “Active sessions”), I can walk you through the closest dashboard action available or confirm whether a manual “stop” control exists for that item.
Which would you prefer: the exact API/SDK snippet to run now, or help locating the relevant view in your LiveKit Cloud dashboard (if you can describe the page you’re on or paste a short screenshot)?modern-winter-66316
02/23/2026, 9:43 AMtall-airline-16756
02/23/2026, 9:43 AMfrom livekit import api
import os
import asyncio
async def end_session(room_name: str):
client = await api.LiveKitAPI(
os.getenv("LIVEKIT_URL"),
os.getenv("LIVEKIT_API_KEY"),
os.getenv("LIVEKIT_API_SECRET"),
)
await client.room.delete_room(api.DeleteRoomRequest(room=room_name))
# example
asyncio.run(end_session("my-room-name"))
2) Node.js / TypeScript (RoomServiceClient)
import { RoomServiceClient } from "livekit-server-sdk"; // or appropriate package
const url = process.env.LIVEKIT_URL!;
const apiKey = process.env.LIVEKIT_API_KEY!;
const apiSecret = process.env.LIVEKIT_API_SECRET!;
const roomService = new RoomServiceClient(url, apiKey, apiSecret);
async function endSession(roomName: string) {
await roomService.deleteRoom(roomName);
}
// example
await endSession("my-room-name");
3) If you’re running inside an agent/job context (helper pattern)
# within an agent session where `ctx` is available
async def hangup_call(ctx):
if ctx is None:
return
await ctx.api.room.delete_room(api.DeleteRoomRequest(room=ctx.room.name))
If you’d like, I can:
• Provide a snippet specific to your runtime (Express, FastAPI, AWS Lambda, etc.).
• Show how to safely look up the active room name for a given job before deleting.
• Explain any permission or environment setup needed for the API client to authenticate.
Which of those would help you next?
Sources: Job lifecycle | LiveKit Documentation | Agents telephony integration | LiveKit Documentation | Why is there extra audio at the end of my recordings of an agent session? |...