---
title: "Delete a sent message"
method: POST
path: "/v1/actions/delete_message"
tags: ["Messages"]
---

# Delete a sent message

`POST /v1/actions/delete_message`

## Request

- Base URL: `https://api.heyreagent.com`
- URL: `https://api.heyreagent.com/v1/actions/delete_message`
- Auth: HTTP bearer

Delete a message you sent.

LinkedIn allows it only within 60 minutes of sending.

Docs: https://heyreagent.com/docs/actions/delete_message

## Request body

- object
  - `messageId` string, required: The message id (from list_chat_messages).
  - `connectionId` string: Which of your LinkedIn accounts to act from (its id from list_linkedin_accounts). Omit to use your first live one.

## Response `200`

It worked. Inside result: deleted, messageId, from, usedToday, dailyLimit.

- Worked
  - `ok` true, required
  - `result` object, required: What was asked for. A field that does not apply is left out, or is null.

## Other responses

- `default`: It did not work. The message says why, in plain English.

---

[API](https://skmtc.dev/heyreagent/apis/heyreagent-api.md) · [All operations](https://skmtc.dev/heyreagent/apis/heyreagent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/heyreagent/apis/heyreagent-api/revisions/917360c5f841?raw)
