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

# sources.index\_document.deleted@1 · OpenVibe.Services

HTML: [sources.index\_document.deleted@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/sources.index_document.deleted)

# SourcesIndexDocumentDeletedPayload `sources.index_document.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: sources
- Visibility: first-party
- Status: active
- Compatibility: backward
- Decision: [ADR-017](/docs/adr/ADR-017)
- Schema: [`https://openvibe.network/contracts/events/payloads/sources.index_document.deleted.v1.json`](/docs/contracts/sources.index_document.deleted.json)

sources.index\_document.deleted v1 (OpenVibe.Sources server/items.js indexEvent). An item of a source with search\_visibility was removed; OpenVibe.Search stores a tombstone at this revision. Envelope: subject { type: item, id: <item id>, revision }, visibility internal, priority important, actor service:sources.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `type` | const | yes |  | - `= "item"` |
| `id` | string | yes |  | - `pattern ^itm_[0-9A-HJKMNP-TV-Z]{26}$` |
| `revision` | integer | yes |  | - `minimum 1` |

## Examples

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

 Valid: removed-item

~~~~
{
  "type": "item",
  "id": "itm_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "revision": 3
}
~~~~

Rejected: no-revision

~~~~
{
  "type": "item",
  "id": "itm_01JAB2C3D4E5F6G7H8J9K0MNPQ"
}
~~~~

## Validate

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