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

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

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

# ChatMessageDeletedPayload `chat.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.message.deleted.v1.json`](/docs/contracts/chat.message.deleted.json)

chat.message.deleted v1 (OpenVibe.Chat server/db/database.js \_announceDeleted). Public messages were deleted: by a moderator, through Live's bridge, the author's or an anon's history, a time-range purge or the auto-delete sweep. Envelope: subject { type: chat\_message, id: <first id> }, visibility public, priority important, actor service:chat. One event per 500 ids. Carries only ids, never the text, the author or who deleted it; payload.redacts makes OpenVibe.Events tombstone the chat.message.created of each id.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `message_ids` | array of integer | yes | Chat message ids (the id in chat.message.created). | - `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\_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

~~~~
{
  "message_ids": [
    1201,
    1202
  ],
  "redacts": {
    "subject_type": "chat_message",
    "subject_ids": [
      "1201",
      "1202"
    ]
  }
}
~~~~

Rejected: carries-text

~~~~
{
  "message_ids": [
    1201
  ],
  "text": "hello",
  "redacts": {
    "subject_type": "chat_message",
    "subject_ids": [
      "1201"
    ]
  }
}
~~~~

Rejected: no-ids

~~~~
{
  "message_ids": [],
  "redacts": {
    "subject_type": "chat_message",
    "subject_ids": [
      "1"
    ]
  }
}
~~~~

## Validate

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