---
title: "Delete a message"
method: DELETE
path: "/messages/shares/{id}"
tags: ["messages"]
---

# Delete a message

`DELETE /messages/shares/{id}`

## Request

- Base URL: `https://api.smartrecruiters.com`
- URL: `https://api.smartrecruiters.com/messages/shares/{id}`
- Auth: one of:
  - API key in header `x-smarttoken`
  - OAuth 2
    - Authorization code: `https://www.smartrecruiters.com/identity/oauth/allow`
    - Token URL: `https://api.smartrecruiters.com/identity/oauth/token` scopes: `messages_manage`

Delete a message with a given id. Deleted message is no longer visible on Hireloop.

## Path parameters

- `id` string, required

## Response `204`

Message successfully deleted

## Other responses

- `403`: No permission to delete a message
- `404`: Message not found

---

[API](https://skmtc.dev/smartrecruiters/apis/messages-api.md) - [All operations](https://skmtc.dev/smartrecruiters/apis/messages-api/llms.txt) - [OpenAPI document](https://skmtc.dev/smartrecruiters/apis/messages-api/revisions/f20bfefc8b11?raw)
