---
title: "Delete all channel messages by user (deprecated)"
method: DELETE
path: "/api/messaging/central-channels/{channelId}/messages/all"
tags: ["messaging"]
deprecated: true
---

# Delete all channel messages by user (deprecated)

`DELETE /api/messaging/central-channels/{channelId}/messages/all`

## Request

- Base URL: `http://localhost:3000`
- URL: `http://localhost:3000/api/messaging/central-channels/{channelId}/messages/all`
- Auth: none declared

> **Deprecated.**

Delete all messages by a specific user in a channel. Use DELETE /channels/{channelId}/messages/all instead.

## Path parameters

- `channelId` string, uuid, required

## Query parameters

- `userId` string, uuid, required

## Response `200`

Messages deleted successfully

- object
  - `success` boolean
  - `deleted` integer

## Other responses

- `400`: Invalid request
- `404`: Channel not found

---

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