# Delete an agent

**DELETE** `/v1/agents/{id}`

**Operation ID**: `delete_2`
**Summary**: Delete an agent
Soft-deletes an agent. Returns 409 while the agent is still subscribed to any pipeline; unsubscribe it first.

## Tags
- Agents
## Parameters

- **id** (required) - path
  - Type: string

## Responses

### 204

Agent deleted successfully

### 401

Unauthorized

### 409

Agent is still subscribed to one or more pipelines
