how can i force call end or room disconnect
# ask-ai
t
how can i force call end or room disconnect
t
Thanks for reaching out, Youssef. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I’m happy to help you with ending a call or disconnecting a room in LiveKit! You have two friendly options to choose from: • Disconnect a Single Participant: You can use the
Room.disconnect()
method to leave the room for just one participant. For example, in JavaScript, calling
room.disconnect()
will disconnect only the local client, while everyone else stays connected. • End the Entire Room: If you want to close the session for everyone, you can use the server-side
deleteRoom
API. For instance, in Node.js, you’d use the
RoomServiceClient
to call
deleteRoom(roomName)
. This will delete the room and disconnect all participants. If you’d like, I’m here to walk you through the details or help you implement these steps—just let me know! Sources: callkit/callkit-example/CallManager.swift | Agents telephony integration | LiveKit Docs | Docs::Agents | Docs::Agents | Job lifecycle | LiveKit Docs