Skip to content

Delete Document

Overview

This endpoint allows you to remove a specific document from the index using its primary key.

Endpoint

DELETE https://api.lixiasearch.com/v1/indexes/{indexId}/documents/{primaryKey}

Request Example

curl https://api.lixiasearch.com/v1/indexes/$INDEX_ID/documents/$PRIMARY_KEY \
    -X DELETE \
    --header "Authorization: Bearer $ACCESS_TOKEN"

Ensure you replace $INDEX_ID with the actual unique identifier of your index, $PRIMARY_KEY with the primary key of the document you want to delete, and$ACCESS_TOKEN$ with a valid authentication token.