knowledge

Delete Knowledge Source

Queue knowledge source deletion (async).

Returns immediately with job_id. Actual deletion happens in background. All documents indexed from this source will be deleted from OpenSearch, then the PostgreSQL record will be removed.

Deletion Flow:

  1. All documents in OpenSearch are deleted asynchronously
  2. PostgreSQL source record is deleted

Tracking: Poll the source endpoint - if it returns 404, deletion is complete.

delete/api/v1/knowledge/{knowledge_source_id}

Request

  • Base URL: https://api.gnosari.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.gnosari.com/api/v1/knowledge/{knowledge_source_id}
  • Auth: one of:
    • HTTP bearer
    • API key in header X-AUTH-TOKEN

Path parameters

knowledge_source_idinteger required

Response

Successful Response

job_idstring required

Event ID for tracking the deletion (outbox event)

statusstring

Current status (deleting)

messagestring

Human-readable status message

Changes

No recorded changes to this operation across all 1 revision of this API.