Delete a project document
curl --request DELETE \
--url https://app.hookie.ai/admin/api/projects/{project_id}/brain/documents/{document_id}const options = {method: 'DELETE'};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/brain/documents/{document_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{project_id}/brain/documents/{document_id}"
response = requests.delete(url)
print(response.text){}Projects
Delete a project document
A project’s brain (#663), on every plan, within its plan’s project document allowance (the Workspace Brain’s when the workspace has one); a project hidden from the caller answers 404. Deletes one of this project’s own documents (another project’s shared document is that project’s to delete): it leaves retrieval at once, and its vectors and original are purged (202 when the purge finishes later). Needs write in the project.
DELETE
/
admin
/
api
/
projects
/
{project_id}
/
brain
/
documents
/
{document_id}
Delete a project document
curl --request DELETE \
--url https://app.hookie.ai/admin/api/projects/{project_id}/brain/documents/{document_id}const options = {method: 'DELETE'};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/brain/documents/{document_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{project_id}/brain/documents/{document_id}"
response = requests.delete(url)
print(response.text){}