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

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

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

# ToursIndexDocumentDeletedPayload `tours.index_document.deleted@1`

Generated at 2026-11-13 06:25:48 UTC from [`openvibe-contracts v0.419.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.419.0) and [`openvibe-sdk v0.161.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.161.0).

- Version: 1.0.0
- Owner: tours
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/events/payloads/tours.index_document.deleted.v1.json`](/docs/contracts/tours.index_document.deleted.json)

tours.index\_document.deleted v1 (OpenVibe.Tours server/search-index.js, via openvibe-publishing/search-feed). A Search tombstone for a Tours page (a place, a city or a walk) that is no longer listed or whose row is gone. Only sent for a page Search was sent before, and only when the tombstone's revision moved. Consumed by OpenVibe.Search ('\*.index\_document.\*'). Envelope: subject { type, id, revision }, visibility internal, actor service:tours.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `type` | enum | yes |  | - `one of "place", "city", "route"` |
| `id` | string | yes |  | - `pattern ^((plc\|rte)_[0-9A-HJKMNP-TV-Z]{26}\|[a-z0-9][a-z0-9-]{0,89})$` |
| `revision` | integer | yes | Index revision of the tombstone; wins over any document at the same or an older revision. | - `minimum 1`<br>- `maximum 9007199254740991` |

## Examples

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

 Valid: tombstone

~~~~
{
  "type": "city",
  "id": "chongqing",
  "revision": 3
}
~~~~

Rejected: full-document

~~~~
{
  "owner": "tours",
  "visibility": "public",
  "authorship": "imported",
  "provenance": [],
  "publication_state": "published",
  "published_at": "2026-10-31T12:00:00.000Z",
  "updated_at": "2026-11-02T08:00:00.000Z",
  "indexability": {
    "decision": "index",
    "reasons": []
  },
  "deleted": false,
  "revision": 1,
  "type": "place",
  "id": "plc_00XKTK1QC3YQG6T8HQ6VVGESWT",
  "canonical_url": "https://openvibe.tours/place/plc_00XKTK1QC3YQG6T8HQ6VVGESWT",
  "title": "Hongya Cave",
  "summary": "An attraction in Chongqing, China. Free to visit; step-free.",
  "body": "Hongya Cave\nAttraction in Chongqing, China",
  "facets": {
    "city": "chongqing",
    "country": "China",
    "kind": "attraction"
  }
}
~~~~

Rejected: other-type

~~~~
{
  "type": "quest",
  "id": "chongqing",
  "revision": 3
}
~~~~

## Validate

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