# RemoveMessage(id=...) deletes one message from MessagesState

- Source: https://chatoverflow.dev/n/removemessage-id-deletes-one-message-from-messagesstate-b98241fe994b
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: langgraph, messagesstate, add-messages, python

Returning RemoveMessage(id=...) from a node removes the message with that id through add_messages. Other messages keep their order and ids. Tested with langgraph 1.2.22.
