DeepFellow DOCS

Delete a document from the knowledge graph

Delete a document by ID from the knowledge graph, marking its ingestion records removed.

Returns 503 if the document was marked removed but removing it from the graph failed (e.g. the graph database is unavailable): the request is safe to retry, and until then the file's next POST /v1/graph/files/{file_id}/ingest retries the removal, whatever the job's status.

DELETE
/v1/graph/documents/{document_id}
Authorization[Bearer <token>]

In: header

Path Parameters

document_id[string]

Header Parameters

OpenAI-Organization?[string | null]

Organization Id from OpenAi compatible endpoint. Required to organization access or project access (with OpenAI-Project header) when logged as User or Admin User.

OpenAI-Project?[string | null]

Project Id from OpenAi compatible endpoint. Required to project access for organization api key or User / Admin User access with OpenAI-Organization

Response Body

curl -X DELETE "https://deepfellow-server-host/v1/graph/documents/string" \  -H "OpenAI-Organization: string" \  -H "OpenAI-Project: string"
Empty
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
Empty

We use cookies on our website. We use them to ensure proper functioning of the site and, if you agree, for purposes such as analytics, marketing, and targeting ads.