---
title: "search.document.removed@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/search.document.removed"
updated: null
---

# search.document.removed@1 · OpenVibe.Services

HTML: [search.document.removed@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/search.document.removed)

# SearchDocumentRemovedPayload `search.document.removed@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: search
- Visibility: first-party
- Status: active
- Compatibility: backward
- Decision: [ADR-018](/docs/adr/ADR-018)
- Schema: [`https://openvibe.network/contracts/events/payloads/search.document.removed.v1.json`](/docs/contracts/search.document.removed.json)

search.document.removed v1 (OpenVibe.Search server/store.js announce). A document's exposure went down: deleted, made draft or unpublished, its visibility changed, or it became noindex. Caches and sitemaps purge canonical\_url. Envelope: subject { type: document, id: <owner>/<type>/<id>, revision }, visibility internal, priority important, actor service:search, trace\_id of the request or event that caused it.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `owner` | string | yes |  | - `pattern ^[a-z][a-z0-9-]{1,39}$` |
| `type` | string | yes |  | - `pattern ^[a-z][a-z0-9_]{1,39}$` |
| `id` | string | yes |  | - `pattern ^[A-Za-z0-9][A-Za-z0-9._:~-]{0,127}$` |
| `revision` | integer | yes |  | - `minimum 0`<br>- `maximum 9007199254740991` |
| `reason` | enum | yes |  | - `one of "deleted", "draft", "not_published", "visibility_changed", "noindex"` |
| `previous_exposure` | enum | yes |  | - `one of "restricted", "public_unlisted", "public_listed"` |
| `exposure` | enum | yes | Lower than previous\_exposure. none: no longer served to anyone. | - `one of "none", "restricted", "public_unlisted"` |
| `canonical_url` | string \| null | yes | The URL only when the document was public before (so it must be purged); null otherwise. |  |

## Examples

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

 Valid: unpublished

~~~~
{
  "owner": "blog",
  "type": "post",
  "id": "pst_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "revision": 12,
  "reason": "not_published",
  "previous_exposure": "public_listed",
  "exposure": "none",
  "canonical_url": "https://openvibe.blog/alex/hello-world"
}
~~~~

Rejected: unknown-reason

~~~~
{
  "owner": "blog",
  "type": "post",
  "id": "pst_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "revision": 12,
  "reason": "spam",
  "previous_exposure": "public_listed",
  "exposure": "none",
  "canonical_url": null
}
~~~~

## Validate

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