> For the complete documentation index, see [llms.txt](https://docs.platform.softwareone.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.platform.softwareone.com/modules-and-features/chat/edit-or-delete-messages-in-chat.md).

# Edit or delete messages in chat

You can edit or delete any messages you have sent in a chat conversation. This applies to both direct chats and group chats.&#x20;

Only the messages that you sent can be edited or deleted. You cannot edit or delete messages sent by others. Once a message is deleted, it cannot be recovered. Deleted messages show this text: *This message was deleted.*

There's no limit to the number of times you can edit a message. Edited messages include the word *edited*.

### Edit or delete a message

To edit or delete a message:

1. Open the **Chats** page.
2. Select the required chat conversation.
3. Find the message you want to edit or delete.
4. Select the actions icon (**•••**) at the top of the message.
5. Do the following:
   * To edit the message, select **Edit**. Type the new message in the text field, then select **Confirm** to send it.&#x20;
   * To delete the message, select **Delete**. In the **Delete message** confirmation, select **Delete** to confirm.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.platform.softwareone.com/modules-and-features/chat/edit-or-delete-messages-in-chat.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
