# deleteConversationParticipant

```graphql
mutation DeleteConversationParticipant($conversationId: ID!, $userId: ID!) {
  deleteConversationParticipant(conversationId: $conversationId, userId: $userId) {
    ok
  }
}
```

Remove a user from a conversation to revoke the access of that participant to the thread; the operation needs the admin relation.

## Arguments

| Name             | Type | Required | Description                 |
| ---------------- | ---- | -------- | --------------------------- |
| `conversationId` | ID!  | Yes      |                             |
| `userId`         | ID!  | Yes      | User participant to remove. |

## Variables

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

## Responses

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

## 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 DeleteConversationParticipant($conversationId: ID!, $userId: ID!) {\n  deleteConversationParticipant(conversationId: $conversationId, userId: $userId) {\n    ok\n  }\n}",
  "variables": {
    "conversationId": "string",
    "userId": "string"
  }
}'
```

## Example response

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