---
title: "Delete agent"
method: DELETE
path: "/api/agents/{agentId}"
tags: ["Agents"]
---

# Delete agent

`DELETE /api/agents/{agentId}`

## Request

- Base URL: `https://app.cotool.ai`
- URL: `https://app.cotool.ai/api/agents/{agentId}`
- Auth: HTTP bearer

Remove an agent from the system.

## Path parameters

- `agentId` string, uuid, required: Unique identifier of the agent to delete

## Response `200`

Successful response - no content

## Other responses

- `400`: Bad request — input validation failed or the request was malformed
- `401`: Unauthorized — missing or invalid API key / session
- `403`: Forbidden — the authenticated user lacks the required permissions
- `500`: Internal server error

---

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