Skip to content
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation

Delete a conversation

conversations.delete(strconversation_id) -> ConversationDeletedResource
DELETE/conversations/{conversation_id}

Delete a conversation. Items in the conversation will not be deleted.

ParametersExpand Collapse
conversation_id: str
ReturnsExpand Collapse
class ConversationDeletedResource:
id: str
deleted: bool
object: Literal["conversation.deleted"]

Delete a conversation

from openai import OpenAI
client = OpenAI()

deleted = client.conversations.delete("conv_123")
print(deleted)
{
  "id": "conv_123",
  "object": "conversation.deleted",
  "deleted": true
}
Returns Examples
{
  "id": "conv_123",
  "object": "conversation.deleted",
  "deleted": true
}