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

# Delete Agent

`DELETE /v1/agents/{id}`

## Request

- Base URL: `https://api.ellipsis.dev`
- URL: `https://api.ellipsis.dev/v1/agents/{id}`
- Auth: HTTP bearer

Delete an agent, by id or by name.

It stops running and its name is freed immediately; its past
sessions remain readable. Only for agents managed through
this API — delete the file to remove one defined by a repository.

## Path parameters

- `id` string, required

## Headers

- `user-agent` string, nullable

## Response `204`

Successful Response

## Other responses

- `401`: The bearer token is missing, invalid, or revoked.
- `403`: The credential may not perform this action, or the account is blocked.
- `404`: No such agent in your account.
- `409`: The agent is defined by a file in a repository; delete that file instead.
- `422`: Validation Error

---

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