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!
Successful Response
The response is of type object.
object