Delete a conversation
Call Create conversation first, then replace conv_123 with the returned conv_ ID.
DELETE
/openai/v1/conversations/{conversation_id}● SupportedRequest parameters
conversation_idstringrequiredpath:
Returns
200 conversation.deleted
Deletes a conversation. After deletion neither the conversation nor its items can be referenced again (including as the conversation parameter of Responses create).
Errors follow the OpenAI format — 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/openai/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/openai/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/openai/v1",
apiKey: "$PRAXIS_API_KEY",
});
await client.conversations.delete("conv_123");Response 200
{
"id": "conv_b667b1f286494a5e8a735d50",
"object": "conversation.deleted",
"deleted": true
}Response
HTTP 200
Deletion confirmation
application/json
| Name | Type | Description |
|---|---|---|
| id | string | |
| object | string | |
| deleted | boolean |