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

# Delete Agent

`DELETE /agents/{agent_id}`

Delete a given `Agent`. This is an irreversible operation.

Note: `Datastores` which are associated with the `Agent` will not be deleted, even if no other `Agent` is using them. To delete a `Datastore`, use the `DELETE /datastores/{datastore_id}` API.

## Path parameters

- `agent_id` string, uuid, required — ID of the agent to delete

## Response `200`

Successful Response

- EmptyResponse

## Other responses

- `422` — Validation Error

## Changes

- **2025-01-14** `4dd01a1cc34b` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/contextualai/apis/endpoints/changes/agents/:agent_id/delete.md)

---

[API](https://skmtc.dev/contextualai/apis/endpoints.md) · [All operations](https://skmtc.dev/contextualai/apis/endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/contextualai/endpoints/revisions/ca7f807eec8b/schema)
