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>"
}
'{
"deleted_paths": [
"<string>"
]
}Deletes a document
A 404 Not Found status code will be returned, if the provided collection name or document path does not exist.
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>"
}
'{
"deleted_paths": [
"<string>"
]
}Documentation Index
Fetch the complete documentation index at: https://docs.zeroentropy.dev/llms.txt
Use this file to discover all available pages before exploring further.
The name of the collection.
The path(s) of the document(s) that you are deleting. Must be either a string, or a list[str] between 1 and 64 inclusive. A 404 Not Found status code will be returned if no document(s) with this path was found. If at least one of the paths provided do exist, then 200 OK will be returned, along with an array of the document paths that were found and thus deleted.
Successful Response