---
title: "chat.room.message.deleted@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/chat.room.message.deleted"
updated: null
---

# chat.room.message.deleted@1 · OpenVibe.Services

HTML: [chat.room.message.deleted@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/chat.room.message.deleted)

# ChatRoomMessageDeletedPayload `chat.room.message.deleted@1`

Generated at 2026-12-01 05:42:00 UTC from [`openvibe-contracts v0.454.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.454.0) and [`openvibe-sdk v0.193.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.193.0).

- Version: 1.0.0
- Owner: chat
- Visibility: public
- Status: active
- Compatibility: backward
- Decision: [ADR-026](/docs/adr/ADR-026)
- Schema: [`https://openvibe.network/contracts/events/payloads/chat.room.message.deleted.v1.json`](/docs/contracts/chat.room.message.deleted.json)

chat.room.message.deleted v1 (OpenVibe.Chat server/rooms/rooms.js, WS-I task 9). Messages of a public room were deleted (by the author, a room mod or chat staff), or the room turned private or was archived, so what it had published must stop being replayable. Envelope: subject { type: chat\_room\_message, id: <first id> }, visibility public, actor service:chat. Carries ids only; payload.redacts makes OpenVibe.Events tombstone the chat.room.message.created of each id.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `room` | string |  | The room's slug. | - `maxLength 64` |
| `message_ids` | array of integer | yes |  | - `minItems 1`<br>- `maxItems 500`<br>- `unique items`<br>- `items: minimum 1` |
| `redacts` | [events.redaction-directive](/docs/contracts/events.redaction-directive) | yes | { subject\_type: chat\_room\_message, subject\_ids: message\_ids as strings }. |  |

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: two-messages

~~~~
{
  "room": "lobby",
  "message_ids": [
    431,
    432
  ],
  "redacts": {
    "subject_type": "chat_room_message",
    "subject_ids": [
      "431",
      "432"
    ]
  }
}
~~~~

Rejected: carries-text

~~~~
{
  "message_ids": [
    431
  ],
  "text": "hello room",
  "redacts": {
    "subject_type": "chat_room_message",
    "subject_ids": [
      "431"
    ]
  }
}
~~~~

Rejected: no-ids

~~~~
{
  "room": "lobby",
  "message_ids": [],
  "redacts": {
    "subject_type": "chat_room_message",
    "subject_ids": []
  }
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('chat.room.message.deleted@1', value);   // { valid, errors: [{ path, message }] }
~~~~
