# deleteAgentLabel

```graphql
mutation DeleteAgentLabel($input: DeleteProjectAgentLabelInput!) {
  deleteAgentLabel(input: $input) {
    ok
  }
}
```

Delete agent label. Requires project.agents.write; API keys also need delete scope.

## Arguments

| Name                     | Type                          | Required | Description                                                                                 |
| ------------------------ | ----------------------------- | -------- | ------------------------------------------------------------------------------------------- |
| `input`                  | DeleteProjectAgentLabelInput! | Yes      |                                                                                             |
| `input.projectReference` | String                        |          |                                                                                             |
| `input.agentId`          | ID!                           | Yes      |                                                                                             |
| `input.sourceTargetKind` | String                        |          | Source target: project, main\_branch, or preview\_branch. Null and omission select project. |
| `input.targetBranchId`   | ID                            |          |                                                                                             |
| `input.labelId`          | ID!                           | Yes      |                                                                                             |

## Variables

```json
{
  "input": {
    "agentId": "string",
    "labelId": "string"
  }
}
```

## Responses

| Status | Description                                        |
| ------ | -------------------------------------------------- |
| 200    | The AgentDeletionResult! in data.deleteAgentLabel. |

## 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 DeleteAgentLabel($input: DeleteProjectAgentLabelInput!) {\n  deleteAgentLabel(input: $input) {\n    ok\n  }\n}",
  "variables": {
    "input": {
      "agentId": "string",
      "labelId": "string"
    }
  }
}'
```

## Example response

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