# Delete eval

`deleteEval(projectReference: String!, evalId: String!, input: WriteTargetInput): Acknowledgement!`

Requires project.evals.write; API keys also need delete scope.

## Arguments

| Argument           | Type                                                                | Required |
| ------------------ | ------------------------------------------------------------------- | -------- |
| `projectReference` | [`String!`](/docs/cloud/graphql/types/string.md)                    | Yes      |
| `evalId`           | [`String!`](/docs/cloud/graphql/types/string.md)                    | Yes      |
| `input`            | [`WriteTargetInput`](/docs/cloud/graphql/types/writetargetinput.md) | No       |

## Input fields

### input

[`WriteTargetInput`](/docs/cloud/graphql/types/writetargetinput.md)

| Field              | Type                                                              | Required | Description                             |
| ------------------ | ----------------------------------------------------------------- | -------- | --------------------------------------- |
| `sourceTargetKind` | [`WriteTargetKind`](/docs/cloud/graphql/types/writetargetkind.md) | No       | The source to write; default project.   |
| `targetBranchId`   | [`ID`](/docs/cloud/graphql/types/id.md)                           | No       | Required with the kind preview\_branch. |

## Response

Returns [`Acknowledgement!`](/docs/cloud/graphql/types/acknowledgement.md). Open the type for its fields and nested types.

| Field | Type                                               | Description  |
| ----- | -------------------------------------------------- | ------------ |
| `ok`  | [`Boolean!`](/docs/cloud/graphql/types/boolean.md) | Always true. |

Types marked with `!` cannot be null. Lists use `[Type]` notation. The [type index](/docs/cloud/graphql/schema.md) lists all published input and response types.

## Example

```graphql title="query.graphql"
mutation DeleteEval($projectReference: String!, $evalId: String!, $input: WriteTargetInput) {
  deleteEval(projectReference: $projectReference, evalId: $evalId, input: $input) {
    ok
  }
}
```

```json title="variables.json"
{
  "projectReference": "00000000-0000-4000-8000-000000000001",
  "evalId": "00000000-0000-4000-8000-000000000001"
}
```
