# Delete a message from manitu

> Removes a message of this access from the customer panel.

- Effect: Destructive - Removes something for good. Agents ask first.
- Idempotent: no
- Stability: beta
- MCP tool: `manitu_access_message_delete` on https://mcp.manitu.de/mcp
- REST: `POST https://api.manitu.de/v1/access/message/delete`
- Needs: `account_user`
- Page: /reference/access/message/delete/

**Removes something for good. Agents name what will be lost and wait for an explicit yes; a program should ask the same.**

## MCP tool

`manitu_access_message_delete`

### Description for the model

Removes a message manitu left for the access this connection uses from the manitu customer panel, by its message_id from manitu_access_message_list - the customer cannot get it back. Only when the customer asks for it; to stop it showing as new, manitu_access_message_set (read) is enough.

### Arguments

- `message_id` (integer | string, required) - The message, from manitu_access_message_list. (pattern `"^[1-9][0-9]*$"`; minimum `1`)

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "manitu_access_message_delete",
    "arguments": {
      "message_id": 12345
    }
  }
}
```

## REST

`POST https://api.manitu.de/v1/access/message/delete`

### Authentication

One of `X-API-Key`, `Authorization: Bearer …` - never more than one in a request.

### Request body

JSON; unknown fields are refused.

- `message_id` (integer | string, required) - The message, from manitu_access_message_list. (pattern `"^[1-9][0-9]*$"`; minimum `1`)

### Response

In `data`; the rest of the body as on every call.

- `message_id` (integer, required)

### Statuses

- `200` Success.
- `400` The request does not match the declared input schema.
- `401` No credential was presented, or it was not recognised.
- `403` The credential is not permitted to use this operation.
- `500` The server failed. Nothing about the request was wrong. Whether a change took effect is not known - check before trying it again.
- `503` The channel this operation forwards through is unavailable.

### Example

```sh
curl -X POST 'https://api.manitu.de/v1/access/message/delete' \
  -H 'X-API-Key: $API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"message_id":12345}'
```

## Example result

```json
{
  "message_id": 12345
}
```
