# uninstallAgent

```graphql
mutation UninstallAgent($input: UninstallProjectAgentInput!) {
  uninstallAgent(input: $input) {
    ok
  }
}
```

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

## Arguments

| Name                     | Type                        | Required | Description |
| ------------------------ | --------------------------- | -------- | ----------- |
| `input`                  | UninstallProjectAgentInput! | Yes      |             |
| `input.projectReference` | String                      |          |             |
| `input.agentId`          | String!                     | Yes      |             |

## Variables

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

## Responses

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

## 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 UninstallAgent($input: UninstallProjectAgentInput!) {\n  uninstallAgent(input: $input) {\n    ok\n  }\n}",
  "variables": {
    "input": {
      "agentId": "string"
    }
  }
}'
```

## Example response

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