POST
/
documents
/
delete-document
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!"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
collection_name
string
required

The name of the collection.

path
string
required

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.

Response

200
application/json
Successful Response
message
string
default:Success!

This string will always be "Success!". This may change in the future.