how to delete room via pure http api without any c...
# ask-ai
h
how to delete room via pure http api without any client lib
t
Thanks for reaching out, Mateusz. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
To delete a room via the HTTP API without using a client library, send a POST request to your LiveKit server's
DeleteRoom
endpoint. Here's how to do it with JSON:
Copy code
POST <https://your-livekit-host/twirp/livekit.RoomService/DeleteRoom>
Content-Type: application/json
Authorization: Bearer YOUR_JWT_TOKEN

{
  "room": "your-room-name"
}
Authorization: You'll need a JWT token with
roomCreate
permission. • On success: You receive an empty JSON object `{}`; all participants are disconnected, and the room is removed from the server. If you prefer, you may use protobuf instead of JSON by changing the
Content-Type
header and request body format. The endpoint follows the Twirp protocol, so be sure to use the exact path as shown above. Replace
your-livekit-host
,
YOUR_JWT_TOKEN
, and
your-room-name
with your actual values. Let me know if you need help with JWT token creation or have further questions about permissions. Sources: livekit/livekit_room.pb.go | pkg/service/roomservice.go | Managing rooms | LiveKit Docs | Inside a session | LiveKit Docs