# deleteConversationMessage

```graphql
mutation DeleteConversationMessage($conversationId: ID!, $messageId: ID!) {
  deleteConversationMessage(conversationId: $conversationId, messageId: $messageId) {
    ok
  }
}
```

Delete one message from a conversation only when the user asks to remove that message; the deletion needs editor access.

## Arguments

| Name             | Type | Required | Description                                                 |
| ---------------- | ---- | -------- | ----------------------------------------------------------- |
| `conversationId` | ID!  | Yes      |                                                             |
| `messageId`      | ID!  | Yes      | Message to soft-delete; it must belong to the conversation. |

## Variables

```json
{
  "conversationId": "string",
  "messageId": "string"
}
```

## Responses

| Status | Description                                            |
| ------ | ------------------------------------------------------ |
| 200    | The DeletionResult! in data.deleteConversationMessage. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "mutation DeleteConversationMessage($conversationId: ID!, $messageId: ID!) {\n  deleteConversationMessage(conversationId: $conversationId, messageId: $messageId) {\n    ok\n  }\n}",
  "variables": {
    "conversationId": "string",
    "messageId": "string"
  }
}'
```

## Example response

```json
{
  "data": {
    "deleteConversationMessage": {
      "ok": false
    }
  }
}
```
