cURL
curl --request POST \ --url https://api.zeroentropy.dev/v1/documents/delete-document \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "collection_name": "<string>", "path": "<string>" } '
{ "message": "Success!" }
Deletes a document
A 404 Not Found status code will be returned, if the provided collection name or document path does not exist.
404 Not Found
The Authorization header must be provided in the format Bearer <your-api-key>.
Authorization
Bearer <your-api-key>
You can get your API Key at the Dashboard!
The name of the collection.
The filepath of the document that you are deleting. A 404 Not Found status code will be returned if no document with this path was found.
Successful Response
This string will always be "Success!". This may change in the future.