Delete Document from Index
Use the following API endpoint to remove a document from a specific AddSearch index:
DELETE /v2/indices/{indexPublicKey}/documents/{documentId}
- Replace
{indexPublicKey}with your index's public key. - Replace
{documentId}with the ID of the document you want to delete.
Response
Upon successful queuing of the delete request, the API returns:
- HTTP status code: 202 Accepted
This indicates that the deletion has been scheduled but might not be immediate.
Notes
- Ensure you include any necessary authentication headers as required by your integration.
- If the document does not exist, confirm the API’s handling via error responses.
- For bulk deletions or additional options, refer to related API documentation.