---
title: "Delete chat message"
method: DELETE
path: "/chat-app/messages/{chatId}/{messageId}"
tags: ["💬 Chat App"]
---

# Delete chat message

`DELETE /chat-app/messages/{chatId}/{messageId}`

## Request

- Base URL: `https://api.freeapi.app/api/v1`
- URL: `https://api.freeapi.app/api/v1/chat-app/messages/{chatId}/{messageId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/hiteshchoudhary-ssesph/apis/freeapi/docs/chat-app/messages/:chatId/:messageId/delete.ts> (a function with typed inputs; its response is checked against the schema)

This API endpoint empowers logged-in users to seamlessly delete a message in the chat that is sent by them.

By sending a `DELETE` request to this endpoint with the relevant `chatId` and `messageId`, users can effectively remove the specified message, thereby enhancing their control over their chat interactions and facilitating a streamlined and personalized messaging experience.

## Response `200`

Delete chat message

- object
  - `data` object
    - `_id` string
  - `message` string
  - `statusCode` number
  - `success` boolean

---

[API](https://skmtc.dev/hiteshchoudhary-ssesph/apis/freeapi.md) - [All operations](https://skmtc.dev/hiteshchoudhary-ssesph/apis/freeapi/llms.txt) - [OpenAPI document](https://skmtc.dev/hiteshchoudhary-ssesph/apis/freeapi/revisions/a9f3a290e4dc?raw)
