---
title: "Delete an agent"
method: DELETE
path: "/agent/identities/{uid}"
tags: ["agent"]
---

# Delete an agent

`DELETE /agent/identities/{uid}`

Delete an agent. All API keys associated with the
agent are deleted atomically.

## Path parameters

- `uid` string, required

## Response `204`

Agent deleted successfully

## Other responses

- `400` — Cannot delete the default agent
- `401` — Authentication required
- `403` — Only human users can manage agents
- `404` — Agent not found
- `500` — Internal server error

---

[API](https://skmtc.net/warp/apis/oz-agent-api.md) · [All operations](https://skmtc.net/warp/apis/oz-agent-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/warp/oz-agent-api/versions/97be876c33e3/schema)
