OriginChainDB
Database endpoints

Delete a document

Removes a document from a table field's full-text index, including its stored text and facet values.

POST /v1/tenants/{tenant}/fts/{table}/{field}/delete

Remove one document's searchable textSuccessful removal does not prove the document previously existed.
  1. Identify the text entrySelect table, field and document ID.
  2. Remove its indexed contentDelete terms, stored text and facet values.
  3. Read the deletion resultKeep source-row deletion separate if also required.

Before you start

Use your database bearer token.

Connection setup

Use the document ID and text field to remove. The example removes p1 from demo_docs/body.

Path parameters

FieldTypeRequired
tenantstringRequired
tablestringRequired
fieldstringRequired

Headers

FieldTypeRequiredDescription
x-oc-db-userstringOptionalActing database user (role, grant and row-policy checks). Send with x-oc-db-key.
x-oc-db-keystringOptionalAPI key of the x-oc-db-user user.

Request body

application/json

Limits and accepted values

Idempotent: deleting a document that was never indexed also succeeds.

FieldTypeRequired
doc_idstringRequired

Read the result

deleted: true also applies when the document was never indexed. Treat it as confirmation that the requested removal succeeded, not as proof that the document previously existed.

Response statuses

HTTP status reference
StatusWhat to do
200OK
400Correct the request before retrying.
401Check the credential and Authorization header.
402Check feature access or available credits.
403Check tenant access, roles and permissions.
409Resolve the conflict before retrying.
413Split or reduce the request body.
415Send the required Content-Type.
422Correct the values or unsupported combination.
429Honor Retry-After when present; back off.
500Check the outcome before retrying a write.
503Honor Retry-After when present; check write outcomes.
ยฉ 2026 Silicoyn Technologies Pvt Ltd