Skip to content
Console
Menu

Queues

Workflows

Getting Started

Authentication

KV Store

Delete in Documents

Deletes a document.

Deletes a document.

  • Path DELETE https://api.data.sylphx.com/v1/documents/index-id/document-id
  • Scope data:write
  • Effect destructive — a successful call removes data; the CLI asks before it runs.
  • Collection documents
  • Query expected_version
  • Host https://api.data.sylphx.com

#Request

FieldTypeWhat it is
index_idstringThe search index's id. Required.
document_idstringThe document's id. Required.
expected_versionuint64Delete only when the current version equals this one (0: any).

#Response

FieldTypeWhat it is
deletedboolWhether the document existed.

#Errors

Every error arrives in the body Errors describes.

#Examples

curl -X DELETE "https://api.data.sylphx.com/v1/documents/index-id/document-id" \
  -H "Authorization: Bearer $SYLPHX_API_KEY"