Delete a conversation
Call Create conversation first, then replace conv_123 with the returned conv_ ID.
DELETE
/model/v1/conversations/{conversation_id}● SupportedRequest parameters
conversation_idstringrequiredpath: Id of the conversation, the
idof the object returned by createConversation (it looks like conv_...). Another tenant's conversation, an unknown id and a deleted conversation all answer 404 conversation_not_found.
Returns
200 conversation.deleted
Deletes a conversation. Afterwards neither it nor its items can be referenced again (including as the conversation parameter of Responses create).
Platform errors (auth, rate limits, validation) and OCR errors use problem+json; other model call errors follow the endpoint's own format (OpenAI or Anthropic) — see error codes
Request
curl
# Call Create conversation first, then replace conv_123 with the returned conv_ ID.
curl -X DELETE https://api.deepraxis.com/model/v1/conversations/conv_123 \
-H "Authorization: Bearer $PRAXIS_API_KEY"Python
# Call Create conversation first, then replace conv_123 with the returned conv_ ID.
from openai import OpenAI
client = OpenAI(
base_url="https://api.deepraxis.com/model/v1",
api_key="$PRAXIS_API_KEY",
)
client.conversations.delete("conv_123")TypeScript
// Call Create conversation first, then replace conv_123 with the returned conv_ ID.
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.deepraxis.com/model/v1",
apiKey: "$PRAXIS_API_KEY",
});
await client.conversations.delete("conv_123");Response 200
{
"id": "conv_2359675c12b145c6b4350e76",
"object": "conversation.deleted",
"deleted": true
}Response
HTTP 200
Deletion confirmation
application/json
| Name | Type | Description |
|---|---|---|
| id | string | Id of the deleted conversation. |
| object | string | Object type; always conversation.deleted. |
| deleted | boolean | Always true; neither the conversation nor its items can be referenced again. |