# Cannot remove messages from Gemini Live chat context

**URL:** <https://community.livekit.io/t/cannot-remove-messages-from-gemini-live-chat-context/175>\
**Category:** Agents\
**Tags:** agent-development, gemini\
**Created:** [January 21, 2026, 1:38pm UTC](https://community.livekit.io/t/cannot-remove-messages-from-gemini-live-chat-context/175 "2026-01-21T13:38:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LiveKit-Community](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/livekit-community/32/67_2.png) [@LiveKit-Community](https://community.livekit.io/u/LiveKit-Community)\
**Post date:** [January 21, 2026, 1:38pm UTC](https://community.livekit.io/t/cannot-remove-messages-from-gemini-live-chat-context/175/1 "2026-01-21T13:38:33Z")

</div>

_This question originally came up in our Slack community and the thread has been consolidated here for long-term reference._

I’m trying to control the chat context of Gemini Realtime using `agent.update_chat_ctx()` but it shows this warning:

```auto
WARNING livekit.plugins.google - Gemini Live does not support removing messages

```

How can I solve this?

---

<div class="post-metadata">

**Author:** ![LiveKit-Community](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/livekit-community/32/67_2.png) [@LiveKit-Community](https://community.livekit.io/u/LiveKit-Community)\
**Post date:** [January 21, 2026, 1:38pm UTC](https://community.livekit.io/t/cannot-remove-messages-from-gemini-live-chat-context/175/2 "2026-01-21T13:38:36Z")

</div>

Gemini doesn’t support message removal, but you should be able to use `add_message`.

There is also `update_instructions` if you want to make significant modifications, but that will essentially restart the session:

> **[async def update\_instructions(self, instructions: str) ‑\> None - livekit.agents...](https://docs.livekit.io/reference/python/v1/livekit/agents/index.html#livekit.agents.Agent.update_instructions)**
>
> APIConnectOptions(max\_retry: int = 3, retry\_interval: float = 2.0, timeout: float = 10.0) | LiveKit Agents for Python …
