---
title: "Changes to POST /api/{session}/delete-message"
method: POST
path: "/api/{session}/delete-message"
---

# Changes to POST /api/{session}/delete-message

`POST /api/{session}/delete-message`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 4 of 54 revisions.

- **2023-12-24** `e1015ecfab24`: 3 info
- **2023-06-02** `9dc94d4ca198`: 1 info
- **2023-05-31** `21a80b8287f1`: 1 info
- **2022-07-21** `5384d2ef4ae9`: 1 breaking

## Changes

- **2023-12-24** `e1015ecfab24`: 3 info
  - added the new optional request property `deleteMediaInDevice`
  - added the new optional request property `onlyLocal`
  - added the non-success response with the status `401`
- **2023-06-02** `9dc94d4ca198`: 1 info
  - added optional request body
- **2023-05-31** `21a80b8287f1`: 1 info
  - endpoint added
- **2022-07-21** `5384d2ef4ae9`: 1 breaking
  - api path removed without deprecation

---

[Operation](https://skmtc.dev/wppconnect-team/apis/wppconnect-api-rest/docs/api/:session/delete-message/post.md) - [API](https://skmtc.dev/wppconnect-team/apis/wppconnect-api-rest.md) - [Page](https://skmtc.dev/wppconnect-team/apis/wppconnect-api-rest/changes/api/:session/delete-message/post)
