---
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

---

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