I am unable to delete rooms using CLI commands eve...
# ask-ai
c
I am unable to delete rooms using CLI commands even though I can see them in livekit cloud.
t
Thanks for reaching out, Subham. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey! Could you let me know what exact error message or issue you’re seeing when you run the
lk room delete
command? Like, is it an authentication error, a “room not found” message, or something different? I’m here to help! Sources: pkg/service/roomservice.go | cmd/lk/ingress.go | Managing rooms | LiveKit Docs | packages/livekit-server-sdk/src/RoomServiceClient.ts | livekit/livekit_room.twirp.go
c
lk room list
shows no room
t
Hey there! If
lk room list
isn’t showing any rooms, it usually means the rooms you see in LiveKit Cloud might not be active anymore or they were created in a different project or environment. No worries though—here are a few things you can check: • Make sure you’re using the right project credentials (API key and secret) for the environment where those rooms were created. You can set these up with the
lk project add
command or by using the
LIVEKIT_API_KEY
and
LIVEKIT_API_SECRET
environment variables. • Take a quick look at the project or environment in LiveKit Cloud to confirm the rooms belong to the same project you’re accessing through the CLI. • If the rooms have become inactive or expired, they won’t show up when you run
lk room list
since this command only displays active rooms. Could you check if your project credentials match the environment where the rooms were created? And if you hit any bumps or want some extra help, just give me a shout—I’m here for you!
c
They are all correct.
t
Since your project credentials and environment look good, but
lk room list
isn’t showing any rooms, it might be that the rooms you see in LiveKit Cloud are inactive or expired. The CLI only shows active rooms, and sometimes inactive rooms can’t be deleted through the CLI. To help figure this out, could you check if the rooms you’re asking about are marked as inactive or expired in the LiveKit Cloud dashboard? If they’re active but still not showing up in the CLI, just let me know and we’ll dive into some other troubleshooting steps together.