---
title: "Delete Custom Agent"
method: DELETE
path: "/api/agents/custom/{key}"
tags: ["agent-builder"]
---

# Delete Custom Agent

`DELETE /api/agents/custom/{key}`

## Request

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

Delete one of this workspace's custom agents.

It leaves the catalog, its manager is paused so the scheduler never runs
it again, and it frees a place under the custom-agent limit. The row is
archived rather than removed, so its past runs, recommendations and audit
trail stay readable. Built-in managers cannot be deleted (404).

## Path parameters

- `key` string, required

## Headers

- `X-Tenant-Id` integer, nullable

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

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