# deleteFileChunks

```graphql
mutation DeleteFileChunks($input: DeleteFileChunksInput!) {
  deleteFileChunks(input: $input) {
    ok
  }
}
```

Delete file chunks. Requires project.knowledge.write; API keys also need delete scope.

## Arguments

| Name                  | Type                   | Required | Description                                                                                       |
| --------------------- | ---------------------- | -------- | ------------------------------------------------------------------------------------------------- |
| `input`               | DeleteFileChunksInput! | Yes      |                                                                                                   |
| `input.fileVersionId` | ID!                    | Yes      | Selected project file-version UUID. Mutation requires exclusive branch ownership of that version. |

## Variables

```json
{
  "input": {
    "fileVersionId": "string"
  }
}
```

## Responses

| Status | Description                                            |
| ------ | ------------------------------------------------------ |
| 200    | The DeleteFileChunksPayload! in data.deleteFileChunks. |

## 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 DeleteFileChunks($input: DeleteFileChunksInput!) {\n  deleteFileChunks(input: $input) {\n    ok\n  }\n}",
  "variables": {
    "input": {
      "fileVersionId": "string"
    }
  }
}'
```

## Example response

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