---
title: "Remove agent from channel"
method: DELETE
path: "/api/messaging/channels/{channelId}/agents/{agentId}"
tags: ["messaging"]
---

# Remove agent from channel

`DELETE /api/messaging/channels/{channelId}/agents/{agentId}`

## Request

- Base URL: `http://localhost:3000`
- URL: `http://localhost:3000/api/messaging/channels/{channelId}/agents/{agentId}`
- Auth: none declared

Remove an agent from a channel

## Path parameters

- `channelId` string, uuid, required
- `agentId` string, uuid, required

## Response `200`

Agent removed from channel

- object
  - `success` boolean
  - `data` object
    - `channelId` string, uuid
    - `agentId` string, uuid
    - `message` string

## Other responses

- `400`: Invalid channelId or agentId
- `404`: Channel or agent not found
- `500`: Error removing agent

## Changes

- **2026-11-03** `d606a12682bb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/elizaos/apis/eliza-os-api/changes/api/messaging/channels/:channelId/agents/:agentId/delete.md)

---

[API](https://skmtc.dev/elizaos/apis/eliza-os-api.md) - [All operations](https://skmtc.dev/elizaos/apis/eliza-os-api/llms.txt) - [OpenAPI document](https://skmtc.dev/elizaos/apis/eliza-os-api/revisions/d606a12682bb?raw)
