Delete a text splitter
DELETE/text-splitters/:text_splitter_id
Deletes a text splitter. A text splitter that is the default text splitter of a pipeline, or that pending documents are still to be split with, cannot be deleted: the request returns HTTP 409 until each such pipeline uses another default text splitter or is deleted and the pending documents are processed.
Permissions. Write on the text splitter.
Request
Responses
- 204
- 401
- 403
- 404
- 409
The text splitter was deleted. The response has no body.
The authentication headers are missing or invalid, or the API key is inactive or expired. Errors lists the messages.
The key lacks write permission on the text splitter (Unauthorized: write access to Text Splitter required, with Insufficient permissions to delete TextSplitter in details.error).
No text splitter with this identifier exists (Text Splitter not found, with the identifier in details.id).
A pipeline uses the text splitter as the default text splitter (Conflict related error), or pending documents are still to be split with the text splitter (Conflict, with <n> pending documents are still to be split with this text splitter in details.error).