<!-- Source: https://docs.vinsi.ai/api-docs/agent-delete -->
# Delete Agent

Delete an existing Agent

```http
DELETE https://dashboard.vinsi.ai/api/agents/{agentId}
```

## Authentication

Send your API key in the `x-api-key` header. Create keys in the VINSI dashboard under Settings → API Keys.

## Headers

| Name | Type | Required |
|---|---|---|
| Content-Type | string | yes (application/json) |
| x-api-key | string | yes |

## Path parameters

| Name | Example |
|---|---|
| agentId | cm9t3bqos0000l404og1m9a9z |

## Example request

```bash
curl -X DELETE 'https://dashboard.vinsi.ai/api/agents/cm9t3bqos0000l404og1m9a9z' \
  -H 'x-api-key: YOUR_API_KEY'
```

## Example response

```json
{
  "message": "Agent deleted successfully"
}
```

