# 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*.

### Editing or deleting a chat message

To edit or delete a message in a chat conversation:

1. On the **Chats** page, open the desired chat conversation.
2. Find the message you want to edit or delete.
3. Select the actions icon (**•••**) at the top of the message.
4. Do the following as necessary:
   * 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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
