# veryfront__delete_agent

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

Risk: mutating.

## Arguments

| Name                 | Type    | Required | Description                                                                                                                                                                     |
| -------------------- | ------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `project_reference`  | string  |          | Project identifier or slug associated with the record.                                                                                                                          |
| `agent_id`           | string  | Yes      | The agent id associated with this record.                                                                                                                                       |
| `confirm`            | boolean |          | Send true to confirm the deletion. A call that sends false is refused and deletes nothing.                                                                                      |
| `source_target_kind` | string  |          | Write authored agent source in project or preview\_branch. Omit for project; main\_branch is a compatibility alias for project. Environment and release writes are unsupported. |
| `target_branch_id`   |         |          | Required for preview\_branch. Omit or use null for project and main\_branch. Use a branch ID returned by project branch discovery.                                              |

## Call it

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__delete_agent",
    "arguments": {
      "agent_id": "<agent_id>"
    }
  }
}
```
