Delete document (DELETE)

Remove a document from your index.


DELETE/api/v1/documents

Delete an indexed document.


Request body

ParameterTypeDescription
idrequiredstringDocument ID to delete.

Example

import { Etoile } from "@etoile-dev/client";

const etoile = new Etoile({
apiKey: process.env.ETOILE_API_KEY,
});

await etoile.delete("starry-night");

Response

{
"message": "Document deleted successfully.",
"id": "starry-night"
}

Auth

Requires secret key.