---
title: "Delete agent"
method: DELETE
path: "/v1/senders/{senderId}/agent"
tags: ["Agents"]
---

# Delete agent

`DELETE /v1/senders/{senderId}/agent`

## Request

- Base URL: `https://api.zavu.dev`
- URL: `https://api.zavu.dev/v1/senders/{senderId}/agent`
- Auth: HTTP bearer

Delete the agent created on this sender. A sender that is only connected to an agent through `POST /v1/agents/{agentId}/senders` is refused with `409`: deleting there would remove the agent from every sender it answers on. Disconnect it with `DELETE /v1/agents/{agentId}/senders/{senderId}`, or delete the agent with `DELETE /v1/agents/{agentId}`.

## Path parameters

- `senderId` string, required

## Response `204`

Agent deleted.

## Other responses

- `401`: Unauthorized.
- `404`: Sender or agent not found.
- `409`: The sender is connected to an agent it does not own.

---

[API](https://skmtc.dev/zavudev/apis/zavu-unified-messaging-layer-api.md) - [All operations](https://skmtc.dev/zavudev/apis/zavu-unified-messaging-layer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zavudev/apis/zavu-unified-messaging-layer-api/revisions/75bc777b0ffb?raw)
