faint-printer-85167
04/20/2026, 4:03 AMtall-airline-16756
04/20/2026, 4:03 AMtall-airline-16756
04/20/2026, 4:03 AMfaint-printer-85167
04/20/2026, 4:03 AMtall-airline-16756
04/20/2026, 4:04 AMlk agent restart for the agent serving that project. This stops new jobs and waits for jobs to finish (honors drain timeout).
• Delete the agent deployment: lk agent delete — removes the agent and will stop sessions as the deployment is removed.
• Delete the room via the Server API to immediately disconnect participants and end the session. Example (Python):
await api_client.room.delete_room(api.DeleteRoomRequest(room=ctx.job.room.name))
• If you self-host agents, send SIGTERM to the agent process to trigger drain mode (not an immediate force-kill).
If you’d like, tell me which option you prefer and whether you’re using LiveKit Cloud or a self-hosted agent, and I’ll give the exact lk commands or the API call details you need.
Sources: Agents Framework | livekit/livekit_composite | DeepWiki | examples/drive-thru | livekit/livekit_composite | DeepWiki | Deployment reliability on LiveKit Cloud | LiveKit | Job lifecycle | LiveKit Documentation, with interactive elements