> For the complete documentation index, see [llms.txt](https://docs.astraapi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.astraapi.com/integrando/mensagens/deletar-uma-mensagem.md).

# Deletar uma mensagem

Permite deletar tanto uma mensagem que enviou quanto uma mensagem enviada por um contato, para utilizar este recurso você só vai precisar do messageId da mensagem que quer apagar

<mark style="color:red;">`DELETE`</mark> `https://api.astraapi.com/api/message/{{instanceId}}/{{messageId}}`

#### Path Parameters

| Name                                         | Type   | Description                     |
| -------------------------------------------- | ------ | ------------------------------- |
| instanceId<mark style="color:red;">\*</mark> | Number | id da instancia                 |
| messageId<mark style="color:red;">\*</mark>  | String | id da mensagem que será apagada |

#### Query Parameters

| Name                                    | Type   | Description                                                                                |
| --------------------------------------- | ------ | ------------------------------------------------------------------------------------------ |
| phone<mark style="color:red;">\*</mark> | String | telefone ou grupo que referente ao chat que será deletada a mensagem com o @s.whatsapp.net |

{% tabs %}
{% tab title="200: OK " %}

{% endtab %}
{% endtabs %}
