Delete a document and all its associated data.
Args: collection_name: Name of the collection filename: Legacy filename lookup key for backward compatibility
Returns: Deletion result with status, list of deleted doc_ids, and filename
Note:
This endpoint prefers file_id or doc_id when provided. The path
filename is retained as a compatibility fallback for older clients.
Documentation Index
Fetch the complete documentation index at: https://docs.xagent.run/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Preferred UploadedFile file_id for document lookup
Preferred doc_id for document lookup
Successful Response
The response is of type Response Delete Document Api Api Kb Collections Collection Name Documents Filename Delete · object.