---
title: "Delete an agent"
method: DELETE
path: "/v1/agents/{id}"
tags: ["Agents"]
---

# Delete an agent

`DELETE /v1/agents/{id}`

## Request

- Base URL: `https://api.pyai.com`
- URL: `https://api.pyai.com/v1/agents/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

## Path parameters

- `id` string, required

## Response `200`

Deletion confirmation

- object
  - `object` string
  - `agent_id` string
  - `deleted` boolean

## Other responses

- `401`: Missing or invalid API key (`code: unauthorized`)
- `404`: No such agent

---

[API](https://skmtc.dev/pyai/apis/pyai-api.md) · [All operations](https://skmtc.dev/pyai/apis/pyai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pyai/apis/pyai-api/revisions/271a1539185b?raw)
