prehistoric-printer-73777
08/16/2025, 4:03 PMtall-airline-16756
08/16/2025, 4:03 PMtall-airline-16756
08/16/2025, 4:04 PMdelete_room
function can happen for a few reasons. Let’s walk through some easy steps to help you figure it out and get things working:
• Verify Room Existence: Try using the list_rooms
function first to make sure the room is actually there before you try deleting it.
• Check Permissions: Double-check that the API key you’re using has the roomCreate
permission—this is needed to delete a room.
• Correct Room Name: Make sure the room name or ID you’re passing to the delete_room
function is exactly right.
• Handle Errors: Keep an eye on any error messages from the delete_room
function—they can give you clues about what’s going wrong.
• Active Participants: Just a heads-up: if there are active participants in the room, they’ll get disconnected once the room is deleted successfully.
If you’re still stuck after trying these, feel free to share more details like the exact error messages, the room name you’re using, and any logs you have. I’m here to help you get this sorted out! Sources: livekit/livekit_room.twirp.goprehistoric-printer-73777
08/16/2025, 4:08 PMtall-airline-16756
08/16/2025, 4:09 PMdelete_room
function in the new SDK might feel a bit different compared to the old SDK, especially when it comes to non-RTC rooms (those rooms created but without any participants joined). In the new SDK, these rooms are explicitly loaded and deleted from the room store. For rooms that do have participants, things should work pretty much the same—the room gets closed, and everyone’s disconnected. If your code worked fine with the old SDK but is acting up with the new one, here are a few friendly tips to check:
• Make sure the room actually exists by using list_rooms
before you try deleting it.
• Double-check that you’re passing the right room name to the delete_room
function.
• Keep an eye out for any error messages from the delete_room
call—they can give you helpful clues.
If you’re still stuck, feel free to share more about the room’s status (like if it has participants or if it’s a non-RTC room) and any errors you’re seeing. I’m here to help you figure it out! Sources: pkg/service/roomservice_test.go