---
title: "Delete an agent (with its evaluation records)"
method: DELETE
path: "/agents/{id}"
tags: ["agents"]
---

# Delete an agent (with its evaluation records)

`DELETE /agents/{id}`

## Request

- Base URL: `https://api.mailly.site` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mailly.site/agents/{id}`
- Auth: HTTP bearer

Replies already sent stay in their threads and sent mail.

## Path parameters

- `id` string, required: agent ID

## Response `200`

Deleted

- object
  - `success` boolean, required

## Other responses

- `401`: Missing or invalid API key
- `404`: Agent not found

---

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