Knowledge Bases V2
Delete Knowledge Base
Changed onSoft delete a knowledge base and clean up associated vector data.
This endpoint:
- Verifies KB exists and user has permission, locking the KB row
- In one transaction, soft deletes all chunks (lightrag_doc_chunks), all documents (knowledge_documents) and the knowledge base (is_deleted=True)
- Deletes the KB's vectors from Weaviate, best-effort, after the transaction commits: the legacy tenant collections (by workspace) and this tenant's objects in the v2 Doc_kb_<id>_chunks collection
- Preserves chunk access logs for analytics
- Leaves S3 files intact (for audit/recovery purposes)
Note: The knowledge base can be restored by setting is_deleted=False, but vector data will need to be re-ingested from the preserved chunks.
delete/knowledge_bases/v2/{kb_id}
Request
- Base URLhttps://api.myaltimate.com (the document declares no server; this is the origin it was published from)
- URLhttps://api.myaltimate.com/knowledge_bases/v2/{kb_id}
- Auth
- HTTP bearer
- or HTTP bearer
Path parameters
kb_idinteger required
Response
Successful Response
unknown required
Changes
- warning
for the
pathrequest parameterkb_id, the exclusiveMinimum was set to0.00
- warning