# deleteEmbeddings

```graphql
mutation DeleteEmbeddings($input: DeleteEmbeddingsInput!) {
  deleteEmbeddings(input: $input) {
    ok
  }
}
```

Delete chunk embeddings. Requires project.knowledge.write; API keys also need delete scope.

## Arguments

| Name              | Type                   | Required | Description                                        |
| ----------------- | ---------------------- | -------- | -------------------------------------------------- |
| `input`           | DeleteEmbeddingsInput! | Yes      |                                                    |
| `input.chunkIds`  | \[ID!]!                | Yes      |                                                    |
| `input.dimension` | EmbeddingDimension!    | Yes      | One of `D768`, `D1024`, `D1536`, `D3072`, `D4096`. |

## Variables

```json
{
  "input": {
    "chunkIds": [
      "string"
    ],
    "dimension": "D768"
  }
}
```

## Responses

| Status | Description                                            |
| ------ | ------------------------------------------------------ |
| 200    | The DeleteEmbeddingsPayload! in data.deleteEmbeddings. |

## 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 DeleteEmbeddings($input: DeleteEmbeddingsInput!) {\n  deleteEmbeddings(input: $input) {\n    ok\n  }\n}",
  "variables": {
    "input": {
      "chunkIds": [
        "string"
      ],
      "dimension": "D768"
    }
  }
}'
```

## Example response

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