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>"
}
'{
"deleted_paths": [
"<string>"
]
}Documents
Delete Document
Deletes a document
A 404 Not Found status code will be returned, if the provided collection name or document path does not exist.
POST
/
documents
/
delete-document
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>"
}
'{
"deleted_paths": [
"<string>"
]
}Authorizations
Body
application/json
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.
Response
Successful Response
⌘I