/datasets/{dataset_id}/documents/{document_id}/segments/{segment_id}Delete a document chunk
Deletes a chunk permanently from a document in a knowledge base. Use the knowledge base, document, and chunk identifiers to target the chunk you want to remove. The operation returns no response body when deletion succeeds.
One documented failure
invalid_paramSegment is deleting.
invalid_param (deleting)
One documented failure
forbiddenDataset api access is not enabled.
forbidden (api access)
One documented failure
not_foundDataset not found.
not_found
A 400 is returned when the embedding model is missing or misconfigured, or when a concurrent request is already deleting the chunk; a 403 is returned when dataset API access, subscription limits, or API key scope prevents the operation. A 404 is returned when the knowledge base, document, or chunk cannot be found. The dataset_id path parameter, document_id path parameter, and segment_id path parameter must be UUIDs.