Deletes a specific message from a chat.
| Permission | Description |
|---|---|
chat_messages.delete | Delete your own messages |
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| chat-id | int | Yes | ID of the chat | 123 |
| message-id | int | Yes | ID of the message to delete | 456 |
DELETE /api/v1/chats/123/messages/456
Authorization: Bearer {token}
No content is returned when the message is successfully deleted.
| Status | Description | Reference |
|---|---|---|
| 401 | Unauthorized | Authentication error |
| 403 | Forbidden (no permission) | Permission error |
| 404 | Not found | Not-found error |