# Editing and deleting messages

CrossMessages can be edited and deleted in many ways, some are less obvious at first. Here we will teach you how to!

## Editing/Deleting a message normally

If you delete/edit a message just like any other message, that change will span across all the other duplicates automatically.

![Editing a message](/files/y4zC9MOvv5prXHcAt7Bn) ![Deleting a message](/files/eBJoPUdRY28puamHhxPv)

## Using the Edit command

Using the command is more complicated than editing normally but here's how to do it anyway

The command format is `/message edit <messageId>`. The messageId is the Discord ID of the message, you can check how to get IDs [here](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID).

Once you sent the command with a valid message ID, the bot will ask you to send a message containing the new message content you wish to attribute to that message.

## Using the Delete command

Very similar to the edit command, the delete command uses a message ID to delete all the messages.&#x20;

The command format is `/message delete <messageId>`. You can check how to get IDs [here](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID).


---

# 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.combot.xyz/guides/editing-and-deleting-messages.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.
