wonderful-analyst-34883
12/16/2025, 5:40 PMtall-airline-16756
12/16/2025, 5:40 PMtall-airline-16756
12/16/2025, 5:41 PMroomAdmin grant and call DeleteRoom with the room name.
2. Examples:
• Go:
_, err := roomClient.DeleteRoom(context.Background(), &livekit.DeleteRoomRequest{
Room: "myroom",
})
• Python:
from livekit.api import DeleteRoomRequest
await lkapi.room.delete_room(DeleteRoomRequest(
room="myroom",
))
• Node.js:
roomService.deleteRoom('myroom').then(() => {
console.log('room deleted');
});
• CLI:
lk room delete myroom
1. After deletion, clients receive a disconnected event with reason ROOM_DELETED.
If you meant ending only an AI agent's session (not the whole room), use the agent session shutdown methods:
• Python: session.shutdown(drain=True)
• Node.js/TS: ctx.shutdown('Session ended')
Which of these do you want to do (delete the whole room or shut down an agent session)?
Sources: Connecting to LiveKit | LiveKit docs | Managing rooms | LiveKit docs