Delete a document and all its associated data.
Args: collection_name: Name of the collection filename: Document filename (will be used to find doc_id)
Returns: Deletion result with status, list of deleted doc_ids, and filename
Note: This endpoint uses filename lookup which may have a race condition if the same filename is uploaded multiple times concurrently. For production use, consider using doc_id directly or adding a filename index column.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful Response
The response is of type Response Delete Document Api Api Kb Collections Collection Name Documents Filename Delete · object.