Knowledge Base

Delete Document

Queue an async delete for a knowledge base document.

Required Scopes: knowledge_base:delete

Async pipeline (B-4):

  1. The row is flipped to status='deleting' with a fresh job_id.
  2. A kb_delete_file Pub/Sub message is published.
  3. The KB administration worker performs the RAG file delete and then removes the row. Poll GET /jobs/{job_id} to observe completion.
delete/api/v1/knowledge-base/documents/{document_id}

Request

  • Base URL: https://api.sendseven.com
  • URL: https://api.sendseven.com/api/v1/knowledge-base/documents/{document_id}
  • Auth: HTTP bearer

Path parameters

document_idstring required

Response

Successful Response

successboolean

Whether the operation succeeded

messagestring nullable

Optional success message

Example response

{
  "message": "Document deleted",
  "success": true
}

Changes

No recorded changes to this operation across all 3 revisions of this API.