> ## Documentation Index
> Fetch the complete documentation index at: https://docs.orkeia.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Remove Agent

> Removes an agent.

## Endpoint

`DELETE https://gateway.orkeia.ai/agents/{id}`

## Headers

```
authorization:  <your_token>
Content-Type: application/json
```

### Path Parameters

Send the ID of the agent to be deleted as a query parameter.

```json theme={null}
{
  "id": "Agent ID (required)"
}
```

### Example (cURL)

```bash theme={null}
curl -X DELETE "https://gateway.orkeia.ai/agents/agent123" \
  -H "authorization:  <your_token>"
```

## Responses

### Response - Success

```json response theme={null}
{
  "status": "OK",
  "data": { "true"}
}
```

### 500 — Bad Request

```json theme={null}
{
  "status": "ERROR",
  "code": "server/error",
  "data": null
}
```

### 400 — Client Error

```json theme={null}
{
  "status": "ERROR",
  "code": "client/error",
  "data": null
}
```
