# Agent Room not deleted

**URL:** https://community.livekit.io/t/agent-room-not-deleted/693
**Category:** Agents
**Tags:** agent-development, livekit-cloud
**Created:** [March 26, 2026, 10:15pm UTC](https://community.livekit.io/t/agent-room-not-deleted/693 "2026-03-26T22:15:46Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Cross\_roads](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/cross_roads/32/854_2.png) [@Cross\_roads](https://community.livekit.io/u/Cross_roads)
#### Post date: [March 26, 2026, 10:15pm UTC](https://community.livekit.io/t/agent-room-not-deleted/693/1 "2026-03-26T22:15:46Z")

</div>

can you explain this

—API.DeleteRoom  
9 Feb 2026, 21:26:58—Room ended  
9 Feb 2026, 21:26:58agent-AJ\_mGKdEmgEbeQY  
Participant left (ROOM\_CLOSED)  
9 Feb 2026, 21:26:57chat\_user\_8489  
Participant left (CLIENT\_INITIATED)  
9 Feb 2026, 21:26:34chat\_user\_8489  
Participant active  
9 Feb 2026, 12:16:14agent-AJ\_mGKdEmgEbeQY  
Participant active  
9 Feb 2026, 12:16:14chat\_user\_8489  
Participant resumed  
9 Feb 2026, 12:16:13agent-AJ\_mGKdEmgEbeQY  
Participant resumed  
9 Feb 2026, 12:16:13agent-AJ\_mGKdEmgEbeQY  
Participant resumed  
8 Feb 2026, 21:17:34agent-AJ\_mGKdEmgEbeQY  
Participant resumed  
7 Feb 2026, 20:14:15chat\_user\_8489  
Participant resumed  
7 Feb 2026, 05:28:36agent-AJ\_mGKdEmgEbeQY  
Participant resumed  
7 Feb 2026, 05:19:16chat\_user\_8489  
Participant active  
7 Feb 2026, 02:04:26chat\_user\_8489  
Participant joining  
7 Feb 2026, 02:04:26chat\_user\_8489  
Participant left (DUPLICATE\_IDENTITY)  
7 Feb 2026, 02:04:26chat\_user\_8489  
Participant active  
7 Feb 2026, 02:04:15agent-AJ\_mGKdEmgEbeQY  
Participant active  
7 Feb 2026, 02:04:07agent-AJ\_mGKdEmgEbeQY  
Participant resumed  
7 Feb 2026, 02:04:06chat\_user\_8489  
Participant resumed  
7 Feb 2026, 02:04:06agent-AJ\_mGKdEmgEbeQY  
Participant resumed  
7 Feb 2026, 00:52:57

chat\_user\_8489  
Participant resumed  
7 Feb 2026, 00:52:29agent-AJ\_mGKdEmgEbeQY  
Participant active  
6 Feb 2026, 23:15:50agent-AJ\_mGKdEmgEbeQY  
Participant joining  
6 Feb 2026, 23:15:50chat\_user\_8489  
Participant active  
6 Feb 2026, 23:15:49chat\_user\_8489  
Participant joining  
6 Feb 2026, 23:15:49—Room created  
6 Feb 2026, 23:15:49

---

<div class="post-metadata">

### Author: ![darryncampbell](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/darryncampbell/32/20_2.png) [@darryncampbell](https://community.livekit.io/u/darryncampbell)
#### Post date: [March 27, 2026, 9:52am UTC](https://community.livekit.io/t/agent-room-not-deleted/693/2 "2026-03-27T09:52:21Z")

</div>

Are you self-hosting LiveKit server?  
If you are using LiveKit cloud, I could look at our server logs, but I’d need a bit more detail about what the issue is?

---

<div class="post-metadata">

### Author: ![Cross\_roads](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/cross_roads/32/854_2.png) [@Cross\_roads](https://community.livekit.io/u/Cross_roads)
#### Post date: [March 27, 2026, 11:41am UTC](https://community.livekit.io/t/agent-room-not-deleted/693/3 "2026-03-27T11:41:34Z")

</div>

its livekit cloud , we have inactivity tracker if there is no user activity within 5 mints , it automatically delete the room but i can see there are few sessions like this that i have mentioned early which gives almost 1000mints  
session id is **RM\_6qLPDw8Wtp2F  
please let me know if you required further details**

---

<div class="post-metadata">

### Author: ![darryncampbell](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/darryncampbell/32/20_2.png) [@darryncampbell](https://community.livekit.io/u/darryncampbell)
#### Post date: [March 30, 2026, 7:55am UTC](https://community.livekit.io/t/agent-room-not-deleted/693/4 "2026-03-30T07:55:46Z")

</div>

I struggled to find it, but that session ID is from the 6th - 9th of February so I can’t see any backend logs for that.

If you look at the event logs on the [dashboard](https://cloud.livekit.io/projects/p_57dm2xmx0tj/sessions/RM_6qLPDw8Wtp2F) for that session, the room doesn’t get closed until 9th Feb, which I presume is from your inactivity tracker, but before that, the same participant has multiple joining / resumed events so I’m not sure what is going on.

---

<div class="post-metadata">

### Author: ![Cross\_roads](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/cross_roads/32/854_2.png) [@Cross\_roads](https://community.livekit.io/u/Cross_roads)
#### Post date: [March 30, 2026, 10:22am UTC](https://community.livekit.io/t/agent-room-not-deleted/693/5 "2026-03-30T10:22:12Z")

</div>

hmm , can you check this one in logs **RM\_RAWAgJKHNpXs , this session is on 18 march and showing 220mints , but according to our settings i dont see how its happening, and this behviour is causing additional bill.**

---

<div class="post-metadata">

### Author: ![darryncampbell](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/darryncampbell/32/20_2.png) [@darryncampbell](https://community.livekit.io/u/darryncampbell)
#### Post date: [March 30, 2026, 10:48am UTC](https://community.livekit.io/t/agent-room-not-deleted/693/6 "2026-03-30T10:48:37Z")

</div>

You have `chat_user_1508` leaving the room at 02:05:42 and then `chat_user_977` joining the room at 02:05:50 (my timezone - the hour doesn’t matter). I think what happened here is you reused the room name, `chat_room_4702` and because there was only a few second between one user leaving and another user joining, the system assumed this was all part of the same room, so also reused the same session (room) ID, `RM_RAWAgJKHNpXs`.

---

<div class="post-metadata">

### Author: ![Cross\_roads](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/cross_roads/32/854_2.png) [@Cross\_roads](https://community.livekit.io/u/Cross_roads)
#### Post date: [March 30, 2026, 11:08am UTC](https://community.livekit.io/t/agent-room-not-deleted/693/7 "2026-03-30T11:08:02Z")

</div>

i got this, but still the question is how could room be lived for this long time when there is no activity in room  
room created at 18 Mar 2026, 07:05:01 chat\_user\_1508 left at \*\*18 Mar 2026, 02:05:42.949 then another user try to join and rejoin , then there is no activity from 7 to 10 .

this is what we track to prevent room being active when there is no msg\*\*  
_INFO] virtual-assistant: Added to transcript - role: assistant, preview: ['Hi there! How can I help you today? Are you interested in learning about our AI customer support s  
[DEBUG] virtual-assistant: Agent state changed: speaking → listening  
[INFO] virtual-assistant: Inactivity: 40s silence detected, sending first follow-up  
[DEBUG] virtual-assistant: Agent state changed: listening → speaking  
[DEBUG] transcription-service: Added conversation item: assistant - 4 total items  
[INFO] virtual-assistant: Added to transcript - role: assistant, preview: [‘Are you still there?’]  
[DEBUG] virtual-assistant: Agent state changed: speaking → listening  
[INFO] virtual-assistant: Inactivity: 30s after first follow-up, sending second  
[DEBUG] virtual-assistant: Agent state changed: listening → speaking  
[DEBUG] transcription-service: Added conversation item: assistant - 5 total items  
[INFO] virtual-assistant: Added to transcript - role: assistant, preview: [‘I am here to help you.’]  
[DEBUG] virtual-assistant: Agent state changed: speaking → listening  
[INFO] virtual-assistant: Inactivity: 30s after second follow-up, ending session  
[DEBUG] virtual-assistant: Agent state changed: listening → speaking  
[DEBUG] transcription-service: Added conversation item: assistant - 6 total items  
[INFO] virtual-assistant: Added to transcript - role: assistant, preview: [“It looks like you’re no longer available. Thank you, goodbye!”]_

---

<div class="post-metadata">

### Author: ![darryncampbell](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/darryncampbell/32/20_2.png) [@darryncampbell](https://community.livekit.io/u/darryncampbell)
#### Post date: [March 31, 2026, 8:09am UTC](https://community.livekit.io/t/agent-room-not-deleted/693/8 "2026-03-31T08:09:24Z")

</div>

I am just looking at the list of events for the session, at the bottom of your dashboard at [Sign in | LiveKit Cloud](https://cloud.livekit.io/projects/p_57dm2xmx0tj/sessions/RM_RAWAgJKHNpXs)

1. Room is created and `chat_user_1508` joins
2. `chat_user_1508` is in the room until they leave, then 8 seconds later `chat_user_977` joins
3. Several instances of `chat_user_977` leaving, then rejoining after a few seconds.
4. `chat_user_977` continues to show strange connection behaviour until the room is eventually closed after they leave a few hours later

I’m not sure what is going on with `chat_user_977`, it looks to me as though they got stuck trying to reconnect to the server. I’m not really able to tell just by looking at the server logs, it might be enlightening if you had client logs available for that time period.

---

<div class="post-metadata">

### Author: ![Cross\_roads](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/cross_roads/32/854_2.png) [@Cross\_roads](https://community.livekit.io/u/Cross_roads)
#### Post date: [April 7, 2026, 11:19am UTC](https://community.livekit.io/t/agent-room-not-deleted/693/9 "2026-04-07T11:19:20Z")

</div>

We dont have client logs available for that time period
