Delete Thread
DELETE /api/chat/threads/{thread_id}
Delete a conversation thread
Permanently deletes a conversation thread and all its messages. This action cannot be undone.
Args: request: FastAPI request object thread_id: Thread identifier to delete backend: Backend service instance (injected via dependency)
Returns: ThreadDeleteResponse: Deletion confirmation
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Responses
Section titled “ Responses ”Successful Response
Thread deletion response model - ULTRA-COMPLETE (40+ fields).
Confirms successful deletion of a conversation thread and all its messages.
Fields: status: Deletion status (“success”, “error”) message: Human-readable confirmation message thread_id: ID of deleted thread
Used By: - DELETE /api/chat/threads/{thread_id} endpoint - Thread deletion confirmation - Thread management UI
object
Deletion status (‘success’ or ‘error’)
Human-readable confirmation message
ID of deleted thread
Custom metadata container for extensibility.
Provides a structured container for custom key-value metadata that doesn’t fit into predefined fields. Supports common metadata patterns.
Fields: tags: List of tags for categorization labels: Key-value labels annotations: Additional annotations source: Data source identifier version: Data version
Used By: - Various models’ custom_metadata fields
object
Custom metadata container for extensibility.
Provides a structured container for custom key-value metadata that doesn’t fit into predefined fields. Supports common metadata patterns.
Fields: tags: List of tags for categorization labels: Key-value labels annotations: Additional annotations source: Data source identifier version: Data version
Used By: - Various models’ custom_metadata fields
object
Validation Error